function testWhenFilterIsTrueWillShow() { return $this->markTestIncomplete(); $block = new Elite_Vaf_Block_Search(); $block->setFilter($this->getMockFilterThatShouldReturn(true)); $this->assertTrue($block->categoryEnabled()); $this->assertEquals(self::ID, $block->getFilter()->argumentWas(), 'the search block will call the filter with the correct category id'); }
protected function _toHtml() { if (!$this->isEnabled()) { return; } return parent::_toHtml(); }
function __construct() { parent::__construct(); $this->setTemplate('vaf/search.phtml'); }
function showSearchButton() { $block = new Elite_Vaf_Block_Search(); $block->setConfig($this->getConfig()); return $block->showSearchButton(); }