Add test to ensure all concordance lists throw the same error
(MDImporterMissingConcordance)
This commit is contained in:
parent
75f2538e16
commit
6466aa9b98
@ -41,11 +41,6 @@ final class InterfaceImplementationTest extends TestCase {
|
||||
/**
|
||||
* Test all concordance lists for their implementation of MDImporterConcordanceListInterface.
|
||||
*
|
||||
* @author Joshua Ramon Enslin <joshua@museum-digital.de>
|
||||
* @group ValidOutput
|
||||
* @group HTMLOutput
|
||||
* @group SafeForProduction
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function testListInterfaceIsImplemented():void {
|
||||
@ -61,4 +56,19 @@ final class InterfaceImplementationTest extends TestCase {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Ensure all tests throw the MDImporterMissingConcordance exception, if
|
||||
* a new value is encountered.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function testMDImporterMissingConcordanceIsThrownForNewValues():void {
|
||||
|
||||
foreach ($this->_lists as $list) {
|
||||
$this->expectException(MDImporterMissingConcordance::class);
|
||||
(new $list)::getConcordanceTarget("ThisInputShouldNotExist");
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user