N°8772 - xml description wip

This commit is contained in:
Eric Espie
2025-12-01 08:54:49 +01:00
parent e790929cbe
commit a88f33575d
3 changed files with 9 additions and 3 deletions

View File

@@ -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
{

View File

@@ -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],
];

View File

@@ -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);