mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 10:38:45 +02:00
N°8772 - xml description wip
This commit is contained in:
@@ -49,7 +49,7 @@ class BlockTest extends AbstractFormsTest
|
||||
*
|
||||
* @throws ReflectionException
|
||||
*/
|
||||
public function testAddChildBlockClass(): void
|
||||
public function testAddChildBlockExpectFormBlockClass(): void
|
||||
{
|
||||
$oFormBlock = new FormBlock('formBlock');
|
||||
$this->expectException(FormBlockException::class);
|
||||
@@ -57,7 +57,7 @@ class BlockTest extends AbstractFormsTest
|
||||
}
|
||||
|
||||
/**
|
||||
* All block may contain a reference to themselves in their options
|
||||
* All block must contain a reference to themselves in their options
|
||||
*/
|
||||
public function testBlockOptionsContainsBlockReference(): void
|
||||
{
|
||||
|
||||
@@ -87,9 +87,11 @@ class AbstractFormIOTest extends AbstractFormsTest
|
||||
'Minus not supported' => ['The-test-name'],
|
||||
'Percent not supported' => ['name%'],
|
||||
'Accent not supported' => ['namé'],
|
||||
'emoji not supported' => ['🎄🎄🎄🎄🎄'],
|
||||
|
||||
// Corrects
|
||||
'Numbers OK' => ['name123', false],
|
||||
'Starting with number OK' => ['123name123', false],
|
||||
'Underscore OK' => ['The_test_name', false],
|
||||
'Camel OK' => ['TheTestName', false],
|
||||
];
|
||||
|
||||
@@ -70,6 +70,8 @@ class FormBindingTest extends AbstractFormsTest
|
||||
$oInputIO = $this->GivenInput('test');
|
||||
$oOutputIO = $this->GivenOutput('test1');
|
||||
|
||||
$this->assertFalse($oInputIO->IsBound(), 'Input must not be Bound by default');
|
||||
|
||||
// When
|
||||
$oOutputIO->BindToInput($oInputIO);
|
||||
|
||||
@@ -86,7 +88,7 @@ class FormBindingTest extends AbstractFormsTest
|
||||
$oInputIO1->BindToInput($oInputIO2);
|
||||
|
||||
// Then
|
||||
$this->assertTrue($oInputIO2->IsBound(), 'Input must be Bound when binding from an output');
|
||||
$this->assertTrue($oInputIO2->IsBound(), 'Input must be Bound when binding from an input');
|
||||
}
|
||||
|
||||
public function testOutputCanBeBoundToAnotherOutputAndItIsBoundAfterThat()
|
||||
@@ -94,6 +96,8 @@ class FormBindingTest extends AbstractFormsTest
|
||||
$oOutputIO1 = $this->GivenOutput('test1');
|
||||
$oOutputIO2 = $this->GivenOutput('test2');
|
||||
|
||||
$this->assertFalse($oOutputIO2->IsBound(), 'Output must not be bound by default');
|
||||
|
||||
// When
|
||||
$oOutputIO1->BindToOutput($oOutputIO2);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user