Пример #1
0
 public function testAfterSave()
 {
     $tablerateMock = $this->getMockBuilder('Magento\\OfflineShipping\\Model\\Resource\\Carrier\\Tablerate')->disableOriginalConstructor()->setMethods(['uploadAndImport'])->getMock();
     $this->tableateFactoryMock->expects($this->once())->method('create')->willReturn($tablerateMock);
     $tablerateMock->expects($this->once())->method('uploadAndImport')->with($this->model);
     $this->model->afterSave();
 }