Add check for Minimaldatensatz field set (http://minimaldatensatz.de)
This commit is contained in:
31
tests/MinimaldatensatzCheckTest.php
Normal file
31
tests/MinimaldatensatzCheckTest.php
Normal file
@ -0,0 +1,31 @@
|
||||
<?PHP
|
||||
/**
|
||||
* Tests for check for Minimaldatensatz conformity.
|
||||
*
|
||||
* @see http://minimaldatensatz.de
|
||||
*
|
||||
* @author Joshua Ramon Enslin <joshua@museum-digital.de>
|
||||
*/
|
||||
declare(strict_types = 1);
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
require_once __DIR__ . '/../src/Checks/Minimaldatensatz/MinimaldatensatzCheck.php';
|
||||
require_once __DIR__ . '/../src/Checks/Minimaldatensatz/MinimaldatensatzCheckIncompletelyImplementedException.php';
|
||||
|
||||
/**
|
||||
* Tests for check for Minimaldatensatz conformity.
|
||||
*/
|
||||
final class MinimaldatensatzCheckTest extends TestCase {
|
||||
/**
|
||||
* Ensures that a warning is thrown, if a value has not been set.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function testImageNotChecked():void {
|
||||
|
||||
$check = new MinimaldatensatzCheck;
|
||||
$this->expectException(MinimaldatensatzCheckIncompletelyImplementedException::class);
|
||||
$check->evaluate();
|
||||
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user