Exemplo n.º 1
0
 public function testGetContainers()
 {
     $this->_model->addPageHandles(['default']);
     $this->_model->addPageHandles(['catalog_product_view']);
     $this->_model->addPageHandles(['catalog_product_view_type_configurable']);
     $this->_model->load();
     $expected = ['content' => 'Main Content Area', 'product.info.extrahint' => 'Product View Extra Hint', 'product.info.configurable.extra' => 'Configurable Product Extra Info'];
     $this->assertEquals($expected, $this->_model->getContainers());
 }
Exemplo n.º 2
0
 /**
  * {@inheritdoc}
  */
 public function getContainers()
 {
     $pluginInfo = $this->pluginList->getNext($this->subjectType, 'getContainers');
     if (!$pluginInfo) {
         return parent::getContainers();
     } else {
         return $this->___callPlugins('getContainers', func_get_args(), $pluginInfo);
     }
 }