/** * @test */ public function addDataRegistersSymmetricLabelInInlineContext() { $input = ['columnsToProcess' => [], 'inlineParentConfig' => ['symmetric_label' => 'aSymmetricLabelField'], 'isInlineChild' => true]; $expected = $input; $expected['columnsToProcess'] = ['aSymmetricLabelField']; $this->assertSame($expected, $this->subject->addData($input)); }
/** * @test */ public function addDataRegistersAlternativeLabelColumnn() { $input = ['columnsToProcess' => [], 'processedTca' => ['ctrl' => ['label' => 'uid', 'label_alt' => 'aField,anotherField'], 'columns' => []]]; $expected = $input; $expected['columnsToProcess'] = ['uid', 'aField', 'anotherField']; $this->assertSame($expected, $this->subject->addData($input)); }