コード例 #1
0
 public function testIndexerAfterSaveScopeChangeAttribute()
 {
     $this->_processor->expects($this->once())->method('markIndexerAsInvalid');
     $this->_model->setOrigData('is_global', \Magento\Catalog\Model\Resource\Eav\Attribute::SCOPE_STORE);
     $this->_model->setOrigData('used_in_product_listing', 1);
     $this->_model->setIsGlobal(\Magento\Catalog\Model\Resource\Eav\Attribute::SCOPE_GLOBAL);
     $this->_model->afterSave();
 }
コード例 #2
0
ファイル: AttributeTest.php プロジェクト: Coplex/magento2
 public function testAfterSaveEavCache()
 {
     $this->eavConfigMock->expects($this->once())->method('clear');
     $this->_model->afterSave();
 }