2 declare(strict_types = 1);
18 use Prophecy\Argument;
23 use TYPO3\TestingFramework\Core\Unit\UnitTestCase;
36 $this->expectException(IdentifierNotValidException::class);
37 $this->expectExceptionCode(1329289436);
39 $section =
new Section(
'test',
'page');
40 $arrayFormFactory = $this->getAccessibleMock(ArrayFormFactory::class, [
'dummy']);
42 $arrayFormFactory->_call(
'addNestedRenderable', [], $section);
52 $section = $this->prophesize(Section::class);
53 $section->willBeConstructedWith([
'test-1',
'Section']);
54 $section->createElement(Argument::cetera())->willReturn($unknownElement);
56 $arrayFormFactory = $this->getAccessibleMock(ArrayFormFactory::class, [
'dummy']);
59 'identifier' =>
'test-3',
63 'identifier' =>
'test-4',
68 $typeErrorExists =
false;
70 $arrayFormFactory->_call(
'addNestedRenderable', $configuration, $section->reveal());
71 }
catch (\TypeError $error) {
72 $typeErrorExists =
true;
74 $this->assertFalse($typeErrorExists);