Beispiel #1
0
 /**
  * @magentoDataFixture Mage/Catalog/_files/product_with_image.php
  */
 public function testThumbnail()
 {
     $product = new Mage_Catalog_Model_Product();
     $product->load(1);
     $size = $this->_block->getThumbnailSize();
     $this->assertGreaterThan(1, $size);
     $this->assertContains('/' . $size, $this->_block->getThumbnailUrl($product));
     $this->assertStringEndsWith('magento_image.jpg', $this->_block->getThumbnailUrl($product));
 }
 public function isMessagesAvailable()
 {
     if (Aitoc_Aitsys_Abstract_Service::get()->isMagentoVersion('>=1.4.2')) {
         return parent::isMessagesAvailable();
     } else {
         return Mage::helper('giftmessage/message')->isMessagesAvailable('quote', $this->getEntity());
     }
 }
 protected function _construct()
 {
     parent::_construct();
     $this->setTemplate('anattadesign/awesomecheckout/onepage/giftmessage/inline.phtml');
 }