예제 #1
0
 public function testIndexerAfterDeleteAttribute()
 {
     $this->_processor->expects($this->once())->method('markIndexerAsInvalid');
     $this->_model->setOrigData('id', 2);
     $this->_model->setOrigData('used_in_product_listing', 1);
     $this->_model->afterDeleteCommit();
 }
예제 #2
0
 /**
  * {@inheritdoc}
  */
 public function setOrigData($key = null, $data = null)
 {
     $pluginInfo = $this->pluginList->getNext($this->subjectType, 'setOrigData');
     if (!$pluginInfo) {
         return parent::setOrigData($key, $data);
     } else {
         return $this->___callPlugins('setOrigData', func_get_args(), $pluginInfo);
     }
 }