function testShouldReturnImageTag()
 {
     $vehicle = $this->createMMY('Honda', 'Civic', '2000');
     $block = new Elite_Vaflogo_Block_Logo();
     $this->setRequestParams($vehicle->toValueArray());
     $this->assertEquals('<img class="vafLogo" src="/logos/HONDA.PNG" />', $block->_toHtml());
 }
 function testShouldOverrideLevel()
 {
     $vehicle = $this->createVehicle(array('model' => 'Civic', 'year' => 2000));
     $block = new Elite_Vaflogo_Block_Logo();
     $block->setConfig(new Zend_Config(array('logo' => array('level' => 'year'))));
     $this->setRequestParams($vehicle->toValueArray());
     $this->assertEquals('<img class="vafLogo" src="/logos/2000.PNG" />', $block->_toHtml());
 }
Exemple #3
0
 function renderBefore()
 {
     if (file_exists(ELITE_PATH . '/Vaflogo')) {
         $block = new Elite_Vaflogo_Block_Logo();
         return $block->_toHtml();
     }
 }