Move TIC testing into a file subfolder, so our test folder can have other types of resources

This commit is contained in:
Deon George 2023-12-13 13:29:16 +11:00
parent ba0d612889
commit 26c80dc1c5
9 changed files with 10 additions and 10 deletions

View File

@ -34,7 +34,7 @@ x86_64:test:
script:
# run laravel tests
- touch storage/app/test/*
- touch storage/app/test/*ZIP storage/app/test/file/*
- XDEBUG_MODE=coverage php vendor/bin/phpunit --coverage-text --colors=never
coverage: '/^\s*Lines:\s*\d+.\d+\%/'

View File

@ -40,7 +40,7 @@ class TicProcessingTest extends TestCase
$this->expectException(FileNotFoundException::class);
$tic = new Tic;
$tic->load('000E-1700545740-no_file.tic');
$tic->load('file/000E-1700545740-no_file.tic');
}
public function test_tic_invalidcrc(): void
@ -48,7 +48,7 @@ class TicProcessingTest extends TestCase
$this->expectException(InvalidCRCException::class);
$tic = new Tic;
$tic->load('000E-1700545740-invalid_crc.tic');
$tic->load('file/000E-1700545740-invalid_crc.tic');
}
public function test_tic_nofilearea(): void
@ -56,7 +56,7 @@ class TicProcessingTest extends TestCase
$this->expectException(NoFileAreaException::class);
$tic = new Tic;
$tic->load('000E-1700545740-no_area.tic');
$tic->load('file/000E-1700545740-no_area.tic');
}
public function test_tic_bad_size(): void
@ -64,7 +64,7 @@ class TicProcessingTest extends TestCase
$this->expectException(SizeMismatchException::class);
$tic = new Tic;
$tic->load('000E-1700545740-bad_size.tic');
$tic->load('file/000E-1700545740-bad_size.tic');
}
public function test_tic_not_to_me(): void
@ -72,7 +72,7 @@ class TicProcessingTest extends TestCase
$this->expectException(NotToMeException::class);
$tic = new Tic;
$tic->load('000E-1700545740-not_to_me.tic');
$tic->load('file/000E-1700545740-not_to_me.tic');
}
public function test_tic_wrong_password(): void
@ -84,7 +84,7 @@ class TicProcessingTest extends TestCase
$this->expectException(InvalidPasswordException::class);
$tic = new Tic;
$tic->load('000E-1700545740-wrong_password.tic');
$tic->load('file/000E-1700545740-wrong_password.tic');
}
public function test_tic_node_not_subscribed(): void
@ -96,7 +96,7 @@ class TicProcessingTest extends TestCase
$this->expectException(NodeNotSubscribedException::class);
$tic = new Tic;
$tic->load('000E-1700545740-file.tic');
$tic->load('file/000E-1700545740-file.tic');
}
public function test_tic_node_no_write(): void
@ -109,7 +109,7 @@ class TicProcessingTest extends TestCase
$this->expectException(NoWriteSecurityException::class);
$tic = new Tic;
$tic->load('000E-1700545740-file.tic');
$tic->load('file/000E-1700545740-file.tic');
}
public function test_tic_good(): void
@ -122,7 +122,7 @@ class TicProcessingTest extends TestCase
$ao->update(['security'=>1]);
$tic = new Tic;
$file = $tic->load('000E-1700545740-file.tic');
$file = $tic->load('file/000E-1700545740-file.tic');
$tic->save();