18 use TYPO3\TestingFramework\Core\Unit\UnitTestCase;
30 protected function setUp()
41 'tableName' =>
'aTable',
46 $GLOBALS[
'TCA'][$input[
'tableName']] = $expected;
47 $result = $this->subject->addData($input);
48 $this->assertEquals($expected, $result[
'processedTca']);
57 'tableName' =>
'aTable',
65 $this->assertEquals($expected, $this->subject->addData($input));
74 'tableName' =>
'aTable',
77 $this->expectException(\UnexpectedValueException::class);
78 $this->expectExceptionCode(1437914223);
80 $this->subject->addData($input);
89 'tableName' =>
'aTable',
91 $GLOBALS[
'TCA'][$input[
'tableName']] =
'foo';
92 $this->expectException(\UnexpectedValueException::class);
93 $this->expectExceptionCode(1437914223);
95 $this->subject->addData($input);