Move TIC testing into a file subfolder, so our test folder can have other types of resources
This commit is contained in:
@@ -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();
|
||||
|
||||
|
Reference in New Issue
Block a user