Ejemplo n.º 1
0
 public function testSetGetTemplateFilter()
 {
     $filter = $this->_model->getTemplateFilter();
     $this->assertSame($filter, $this->_model->getTemplateFilter());
     $this->assertEquals(\Magento\TestFramework\Helper\Bootstrap::getObjectManager()->get('Magento\\Framework\\StoreManagerInterface')->getStore()->getId(), $filter->getStoreId());
     $filter = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()->create('Magento\\Email\\Model\\Template\\Filter');
     $this->_model->setTemplateFilter($filter);
     $this->assertSame($filter, $this->_model->getTemplateFilter());
 }
Ejemplo n.º 2
0
 public function testSetGetTemplateFilter()
 {
     $this->mockModel();
     $filter = $this->model->getTemplateFilter();
     $this->assertSame($filter, $this->model->getTemplateFilter());
     $this->assertEquals($this->objectManager->get('Magento\\Store\\Model\\StoreManagerInterface')->getStore()->getId(), $filter->getStoreId());
     $filter = $this->objectManager->create('Magento\\Email\\Model\\Template\\Filter');
     $this->model->setTemplateFilter($filter);
     $this->assertSame($filter, $this->model->getTemplateFilter());
 }