Move TIC testing into a file subfolder, so our test folder can have other types of resources
This commit is contained in:
parent
ba0d612889
commit
26c80dc1c5
@ -34,7 +34,7 @@ x86_64:test:
|
|||||||
|
|
||||||
script:
|
script:
|
||||||
# run laravel tests
|
# 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
|
- XDEBUG_MODE=coverage php vendor/bin/phpunit --coverage-text --colors=never
|
||||||
|
|
||||||
coverage: '/^\s*Lines:\s*\d+.\d+\%/'
|
coverage: '/^\s*Lines:\s*\d+.\d+\%/'
|
||||||
|
@ -40,7 +40,7 @@ class TicProcessingTest extends TestCase
|
|||||||
$this->expectException(FileNotFoundException::class);
|
$this->expectException(FileNotFoundException::class);
|
||||||
|
|
||||||
$tic = new Tic;
|
$tic = new Tic;
|
||||||
$tic->load('000E-1700545740-no_file.tic');
|
$tic->load('file/000E-1700545740-no_file.tic');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function test_tic_invalidcrc(): void
|
public function test_tic_invalidcrc(): void
|
||||||
@ -48,7 +48,7 @@ class TicProcessingTest extends TestCase
|
|||||||
$this->expectException(InvalidCRCException::class);
|
$this->expectException(InvalidCRCException::class);
|
||||||
|
|
||||||
$tic = new Tic;
|
$tic = new Tic;
|
||||||
$tic->load('000E-1700545740-invalid_crc.tic');
|
$tic->load('file/000E-1700545740-invalid_crc.tic');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function test_tic_nofilearea(): void
|
public function test_tic_nofilearea(): void
|
||||||
@ -56,7 +56,7 @@ class TicProcessingTest extends TestCase
|
|||||||
$this->expectException(NoFileAreaException::class);
|
$this->expectException(NoFileAreaException::class);
|
||||||
|
|
||||||
$tic = new Tic;
|
$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
|
public function test_tic_bad_size(): void
|
||||||
@ -64,7 +64,7 @@ class TicProcessingTest extends TestCase
|
|||||||
$this->expectException(SizeMismatchException::class);
|
$this->expectException(SizeMismatchException::class);
|
||||||
|
|
||||||
$tic = new Tic;
|
$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
|
public function test_tic_not_to_me(): void
|
||||||
@ -72,7 +72,7 @@ class TicProcessingTest extends TestCase
|
|||||||
$this->expectException(NotToMeException::class);
|
$this->expectException(NotToMeException::class);
|
||||||
|
|
||||||
$tic = new Tic;
|
$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
|
public function test_tic_wrong_password(): void
|
||||||
@ -84,7 +84,7 @@ class TicProcessingTest extends TestCase
|
|||||||
$this->expectException(InvalidPasswordException::class);
|
$this->expectException(InvalidPasswordException::class);
|
||||||
|
|
||||||
$tic = new Tic;
|
$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
|
public function test_tic_node_not_subscribed(): void
|
||||||
@ -96,7 +96,7 @@ class TicProcessingTest extends TestCase
|
|||||||
$this->expectException(NodeNotSubscribedException::class);
|
$this->expectException(NodeNotSubscribedException::class);
|
||||||
|
|
||||||
$tic = new Tic;
|
$tic = new Tic;
|
||||||
$tic->load('000E-1700545740-file.tic');
|
$tic->load('file/000E-1700545740-file.tic');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function test_tic_node_no_write(): void
|
public function test_tic_node_no_write(): void
|
||||||
@ -109,7 +109,7 @@ class TicProcessingTest extends TestCase
|
|||||||
$this->expectException(NoWriteSecurityException::class);
|
$this->expectException(NoWriteSecurityException::class);
|
||||||
|
|
||||||
$tic = new Tic;
|
$tic = new Tic;
|
||||||
$tic->load('000E-1700545740-file.tic');
|
$tic->load('file/000E-1700545740-file.tic');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function test_tic_good(): void
|
public function test_tic_good(): void
|
||||||
@ -122,7 +122,7 @@ class TicProcessingTest extends TestCase
|
|||||||
$ao->update(['security'=>1]);
|
$ao->update(['security'=>1]);
|
||||||
|
|
||||||
$tic = new Tic;
|
$tic = new Tic;
|
||||||
$file = $tic->load('000E-1700545740-file.tic');
|
$file = $tic->load('file/000E-1700545740-file.tic');
|
||||||
|
|
||||||
$tic->save();
|
$tic->save();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user