Skip to content

Commit

Permalink
tests update
Browse files Browse the repository at this point in the history
  • Loading branch information
msztorc committed Mar 19, 2017
1 parent 1f5aa3f commit 9ef9501
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/unit/ServicesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public function test_add_package()

//send package
$result = $dpd->sendPackage($this->parcels, $this->receiver, 'SENDER');
$this->assertTrue(isset($result->parcels) && !is_null($result->parcels) && count($result->parcels) == 2);
$this->assertTrue(isset($result->parcels) && count($result->parcels) == 2);

// generate speedlabel in default, pdf/a4 format
$speedlabel = $dpd->generateSpeedLabelsByPackageIds([$result->packageId], $this->pickupAddress);
Expand Down Expand Up @@ -112,10 +112,10 @@ public function test_add_packages()
// prepare packages
array_push($packages, $dpd->createPackage($this->parcels, $this->receiver, 'SENDER'));
array_push($packages, $dpd->createPackage($this->parcels2, $this->receiver, 'SENDER'));
array_push($packages, $dpd->createPackage($this->parcels3, $this->receiver, 'SENDER'));
array_push($packages, $dpd->createPackage($this->parcels3, $this->receiver, 'SENDER'));

$result = $dpd->sendPackages($packages);
$this->assertTrue(isset($result->packages));
$this->assertTrue(isset($result->packages) && count($result->packages) == count($packages));

// generate speedlabel
$speedlabel = $dpd->generateSpeedLabelsBySessionId($dpd->getSessionId(), $this->pickupAddress);
Expand Down

0 comments on commit 9ef9501

Please sign in to comment.