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');
 }
コード例 #2
0
 protected function _toHtml()
 {
     if (!$this->isEnabled()) {
         return;
     }
     return parent::_toHtml();
 }
コード例 #3
0
 function __construct()
 {
     parent::__construct();
     $this->setTemplate('vaf/search.phtml');
 }
コード例 #4
0
 function showSearchButton()
 {
     $block = new Elite_Vaf_Block_Search();
     $block->setConfig($this->getConfig());
     return $block->showSearchButton();
 }