public function testSetSearchable() { $this->assertEquals($this->objProperty, $this->objProperty->setSearchable(false)); $this->assertEquals(false, $this->objProperty->isSearchable()); $this->assertEquals(false, $GLOBALS['TL_DCA']['tl_test']['fields']['test']['search']); $this->assertEquals($this->objProperty, $this->objProperty->setSearchable(true)); $this->assertEquals(true, $this->objProperty->isSearchable()); $this->assertEquals(true, $GLOBALS['TL_DCA']['tl_test']['fields']['test']['search']); }