Ejemplo n.º 1
0
 /**
  * @magentoDataFixture Magento/Core/_files/layout_update.php
  */
 public function testFetchUpdatesByHandle()
 {
     /** @var $theme \Magento\Framework\View\Design\ThemeInterface */
     $theme = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()->create('Magento\\Framework\\View\\Design\\ThemeInterface');
     $theme->load('Test Theme', 'theme_title');
     $result = $this->_resourceModel->fetchUpdatesByHandle('test_handle', $theme, \Magento\TestFramework\Helper\Bootstrap::getObjectManager()->get('Magento\\Store\\Model\\StoreManagerInterface')->getStore());
     $this->assertEquals('not_temporary', $result);
 }
Ejemplo n.º 2
0
 /**
  * Get update string
  *
  * @param string $handle
  * @return string
  */
 protected function _getDbUpdateString($handle)
 {
     return $this->_resource->fetchUpdatesByHandle($handle, $this->_theme, $this->_store);
 }