public function getConfig($contentType) { if (array_key_exists($contentType, $this->searchableTypes)) { return $this->searchableTypes[$contentType]; } return false; }
public function testViewless() { $app = $this->getApp(); $app['config']->set('contenttypes/pages/viewless', true); $search = new SearchConfig($app['config']); $this->assertFalse($search->getConfig('pages')); }