Beispiel #1
0
 public function testIsCustomDesignAbstractions()
 {
     $expected = ['customer_account' => ['name' => 'customer_account', 'label' => 'Customer My Account (All Pages)', 'design_abstraction' => 'custom'], 'page_empty' => ['name' => 'page_empty', 'label' => 'All Empty Layout Pages', 'design_abstraction' => 'page_layout'], 'empty_data' => []];
     $this->assertTrue($this->_model->isCustomerDesignAbstraction($expected['customer_account']));
     $this->assertFalse($this->_model->isCustomerDesignAbstraction($expected['page_empty']));
     $this->assertFalse($this->_model->isCustomerDesignAbstraction($expected['empty_data']));
 }
 /**
  * {@inheritdoc}
  */
 public function isCustomerDesignAbstraction(array $abstraction)
 {
     $pluginInfo = $this->pluginList->getNext($this->subjectType, 'isCustomerDesignAbstraction');
     if (!$pluginInfo) {
         return parent::isCustomerDesignAbstraction($abstraction);
     } else {
         return $this->___callPlugins('isCustomerDesignAbstraction', func_get_args(), $pluginInfo);
     }
 }