/** * Test shipment remove track */ public function testInvoke() { $this->trackRepositoryMock->expects($this->once())->method('get')->with($this->equalTo(1))->will($this->returnValue($this->trackMock)); $this->trackMock->expects($this->once())->method('delete'); $this->assertTrue($this->shipmentRemoveTrack->invoke(1)); }
/** * @param int $id * @return bool * @throws \Exception */ public function removeTrack($id) { return $this->shipmentRemoveTrack->invoke($id); }