public function testSetFilterable() { $this->assertEquals($this->objProperty, $this->objProperty->setFilterable(false)); $this->assertEquals(false, $this->objProperty->isFilterable()); $this->assertEquals(false, $GLOBALS['TL_DCA']['tl_test']['fields']['test']['filter']); $this->assertEquals($this->objProperty, $this->objProperty->setFilterable(true)); $this->assertEquals(true, $this->objProperty->isFilterable()); $this->assertEquals(true, $GLOBALS['TL_DCA']['tl_test']['fields']['test']['filter']); }