public function testSetLabelByRef() { $arrLabel = array('Foo', 'Bar'); $this->assertEquals($this->objProperty, $this->objProperty->setLabelByRef($arrLabel)); $this->assertEquals($arrLabel, $this->objProperty->getLabel()); $this->assertEquals($arrLabel, $GLOBALS['TL_DCA']['tl_test']['fields']['test']['label']); $arrLabel = array('Foo', 'bar2'); $this->assertEquals($arrLabel, $this->objProperty->getLabel()); $this->assertEquals($arrLabel, $GLOBALS['TL_DCA']['tl_test']['fields']['test']['label']); }