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()); }
/** * {@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); } }