Пример #1
0
 /**
  * {@inheritdoc}
  */
 public function useCrossSellLinks()
 {
     $pluginInfo = $this->pluginList->getNext($this->subjectType, 'useCrossSellLinks');
     if (!$pluginInfo) {
         return parent::useCrossSellLinks();
     } else {
         return $this->___callPlugins('useCrossSellLinks', func_get_args(), $pluginInfo);
     }
 }
Пример #2
0
 public function testUseCrossSellLinks()
 {
     $this->model->useCrossSellLinks();
     $this->assertEquals(Link::LINK_TYPE_CROSSSELL, $this->model->getData('link_type_id'));
 }