コード例 #1
0
 /**
  * @test
  */
 public function addDataRegistersSymmetricLabelInInlineContext()
 {
     $input = ['columnsToProcess' => [], 'inlineParentConfig' => ['symmetric_label' => 'aSymmetricLabelField'], 'isInlineChild' => true];
     $expected = $input;
     $expected['columnsToProcess'] = ['aSymmetricLabelField'];
     $this->assertSame($expected, $this->subject->addData($input));
 }
コード例 #2
0
 /**
  * @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));
 }