public function testCanBeShowInCategory()
 {
     $this->_model->load(1);
     // fixture
     $this->assertFalse((bool) $this->_model->canBeShowInCategory(6));
     $this->assertTrue((bool) $this->_model->canBeShowInCategory(3));
 }
 public function testCanBeShowInCategory()
 {
     $this->_model->load($this->productRepository->get('simple')->getId());
     // fixture
     $this->assertFalse((bool) $this->_model->canBeShowInCategory(6));
     $this->assertTrue((bool) $this->_model->canBeShowInCategory(3));
 }
 /**
  * {@inheritdoc}
  */
 public function canBeShowInCategory($categoryId)
 {
     $pluginInfo = $this->pluginList->getNext($this->subjectType, 'canBeShowInCategory');
     if (!$pluginInfo) {
         return parent::canBeShowInCategory($categoryId);
     } else {
         return $this->___callPlugins('canBeShowInCategory', func_get_args(), $pluginInfo);
     }
 }