Skip to content

Commit

Permalink
FieldsetElement: Test loading via Form::addElement()
Browse files Browse the repository at this point in the history
  • Loading branch information
lippserd committed Oct 17, 2022
1 parent 92ff7df commit cac0a5a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/FormElement/FieldsetElementTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace ipl\Tests\Html\FormElement;

use ipl\Html\Form;
use ipl\Html\FormElement\FieldsetElement;
use ipl\Tests\Html\TestCase;

Expand All @@ -13,6 +14,14 @@ class FieldsetElementTest extends TestCase
'two' => 2,
];

public function testElementLoading(): void
{
$form = (new Form())
->addElement('fieldset', 'test_fieldset');

$this->assertInstanceOf(FieldsetElement::class, $form->getElement('test_fieldset'));
}

public function testOneDimension(): void
{
$fieldset = (new FieldsetElement('test_fieldset'))
Expand Down

0 comments on commit cac0a5a

Please sign in to comment.