示例#1
0
 /**
  * @magentoAppIsolation enabled
  */
 public function testGetPlaceholder()
 {
     /** @var $model \Magento\Catalog\Model\Product */
     $model = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()->create('Magento\\Catalog\\Model\\Product');
     $this->_helper->init($model, 'image');
     $placeholder = $this->_helper->getPlaceholder();
     $this->assertEquals('Magento_Catalog::images/product/placeholder/image.jpg', $placeholder);
     // test that placeholder doesn't change, once initialized
     $model->setDestinationSubDir('other_image');
     $this->assertEquals($placeholder, $this->_helper->getPlaceholder());
 }