mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 02:28:44 +02:00
Add ModelReflection Service as dependency injection + tests
This commit is contained in:
@@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user