Add coverage information to tests, fix coverage of NodaValidationHelper

This commit is contained in:
jrenslin committed 2023-11-07 23:31:42 +01:00
1 parent 1a7dbcd6f6
commit c9b0e7085f
7 files changed
+37 -5

No files matched your search

+16
View File
@@ -9,8 +9,24 @@ use PHPUnit\Framework\TestCase;
/**
* This script contains tests for the validation of single field contents.
*
* @covers \NodaValidationHelper
*/
final class NodaValidationHelperTest extends TestCase {
/**
* Test that a specific error is thrown if no description for actors is provided.
*
* @small
*
* @return void
*/
public function testActorDescriptionValidationFailsOnEmptyInput():void {
$this->expectException(MDInvalidEmptyInputException::class);
NodaValidationHelper::validateActorDescription("");
}
/**
* Test successfully refusing too short actor descriptions.
*