Add ModelReflection Service as dependency injection + tests

This commit is contained in:
Eric Espie
2025-11-19 14:42:32 +01:00
parent 6678689b77
commit 65bd6d9fd0
18 changed files with 285 additions and 44 deletions

View File

@@ -82,6 +82,7 @@ class AbstractFormIOTest extends AbstractFormsTest
public function NameFormatSupportsOnlyLettersUnderscoreAndNumbersProvider()
{
return [
// Incorrects
'Spaces not supported' => ['The test name'],
'Minus not supported' => ['The-test-name'],
'Percent not supported' => ['name%'],
@@ -94,4 +95,9 @@ class AbstractFormIOTest extends AbstractFormsTest
];
}
public function testCreatingIOWithUnknownFormatThrowsException()
{
$this->expectException(FormBlockIOException::class);
$oInput = $this->GivenInput('test', 'test_toto');
}
}