Example #1
0
 public function testAfterSave()
 {
     $productIds = [1, 2, 3];
     $this->subject->expects($this->any())->method('getAffectedProductIds')->will($this->returnValue($productIds));
     $this->productRuleProcessor->expects($this->once())->method('reindexList')->with($productIds);
     $this->assertEquals($this->subject, $this->plugin->afterSave($this->subject, $this->subject));
 }