Skip to content

Commit

Permalink
Add tests for DHL exception status
Browse files Browse the repository at this point in the history
  • Loading branch information
sauladam committed Feb 21, 2018
1 parent f85ebe0 commit a5740e7
Show file tree
Hide file tree
Showing 2 changed files with 807 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/Trackers/DHLTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,20 @@ public function it_resolves_a_shipment_that_is_in_transit()
}


/** @test */
public function it_resolves_a_shipment_with_an_exception()
{
$tracker = $this->getTracker('exception.txt');

$track = $tracker->track('00340434162530533851');

$this->assertSame(Track::STATUS_EXCEPTION, $track->currentStatus());
$this->assertFalse($track->delivered());
$this->assertNull($track->getRecipient());
$this->assertCount(5, $track->events());
}


/** @test */
public function it_resolves_a_shipment_as_delivered_even_if_the_statuses_are_not_in_chronological_order()
{
Expand Down
Loading

0 comments on commit a5740e7

Please sign in to comment.