/**
  * @test
  */
 public function addDataSkipsColumnsNotReferencedInShowitemOrPalette()
 {
     $input = ['databaseRow' => [], 'recordTypeValue' => 'aType', 'processedTca' => ['types' => ['aType' => ['showitem' => '--palette--;;aPalette, anotherField']], 'palettes' => ['aPalette' => ['showitem' => 'aField']], 'columns' => ['aField' => ['config' => ['type' => 'input']], 'removeMe' => ['config' => ['type' => 'input']], 'anotherField' => ['config' => ['type' => 'input']]]]];
     $expected = $input;
     $expected['columnsToProcess'] = ['aField', 'anotherField'];
     $this->assertSame($expected, $this->subject->addData($input));
 }
 /**
  * @test
  */
 public function addDataAddsColumnsForNewInlineChild()
 {
     $input = ['command' => 'new', 'databaseRow' => ['uid' => 'NEW1234'], 'recordTypeValue' => 'aType', 'processedTca' => ['types' => ['aType' => ['showitem' => 'aField']], 'columns' => ['aField' => ['config' => ['type' => 'input']]]], 'inlineParentConfig' => ['foreign_table' => 'aTable', 'appearance' => ['collapseAll' => true]], 'isInlineChild' => true, 'isInlineAjaxOpeningContext' => false, 'inlineExpandCollapseStateArray' => []];
     $expected = $input;
     $expected['columnsToProcess'] = ['aField'];
     $this->assertSame($expected, $this->subject->addData($input));
 }