Exemplo n.º 1
0
 public function testGetters()
 {
     $this->assertEquals($GLOBALS['TL_DCA']['tl_test']['fields']['test']['label'], $this->objProperty->getLabel());
     $this->assertEquals($GLOBALS['TL_DCA']['tl_test']['fields']['test']['inputType'], $this->objProperty->getWidgetType());
     $this->assertEquals($GLOBALS['TL_DCA']['tl_test']['fields']['test']['eval'], $this->objProperty->getEvaluation());
     $this->assertEquals($GLOBALS['TL_DCA']['tl_test']['fields']['test']['eval']['tl_class'], $this->objProperty->getEvaluationAttribute('tl_class'));
     $this->assertEquals($GLOBALS['TL_DCA']['tl_test']['fields']['test']['filter'], $this->objProperty->isFilterable());
     $this->assertEquals($GLOBALS['TL_DCA']['tl_test']['fields']['test']['search'], $this->objProperty->isSearchable());
     $this->assertEquals($GLOBALS['TL_DCA']['tl_test']['fields']['test']['sorting'], $this->objProperty->isSortable());
     $this->assertEquals($this->objProperty->get('sorting'), $this->objProperty->isSortable());
     $this->assertEquals($this->objProperty->get('sorting'), $this->objProperty->getFromDefinition('sorting'));
     $this->assertEquals($this->objProperty->getDataContainer(), $this->objProperty->getParent());
 }