Exemplo n.º 1
0
 /**
  * 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));
 }
Exemplo n.º 2
0
 /**
  * @param int $id
  * @return bool
  * @throws \Exception
  */
 public function removeTrack($id)
 {
     return $this->shipmentRemoveTrack->invoke($id);
 }