Пример #1
0
 public function testUpdateItemsStockUponConfigChange()
 {
     $websiteId = 1;
     $this->resourceStock->expects($this->once())->method('updateSetOutOfStock')->willReturn(null);
     $this->resourceStock->expects($this->once())->method('updateSetInStock')->willReturn(null);
     $this->resourceStock->expects($this->once())->method('updateLowStockDate')->willReturn(null);
     $this->event->expects($this->once())->method('getWebsite')->will($this->returnValue($websiteId));
     $this->eventObserver->expects($this->atLeastOnce())->method('getEvent')->will($this->returnValue($this->event));
     $this->observer->updateItemsStockUponConfigChange($this->eventObserver);
 }