Skip to content

Commit

Permalink
Fix multiple reference identifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
Reindert committed Aug 3, 2017
1 parent ded9cb7 commit c74cd0e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
11 changes: 8 additions & 3 deletions Tests/SendConsignments/SendMultipleConsignmentsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ class SendMultipleConsignmentsTest extends \PHPUnit_Framework_TestCase
*/
public function testSendOneConsignment()
{
if (getenv('API_KEY') == null || getenv('API_KEY2') == null) {
echo "\033[31m Set 2 MyParcel API-keys in 'Environment variables' before running UnitTest. Example: API_KEY=f8912fb260639db3b1ceaef2730a4b0643ff0c31 and API_KEY2=f8912fb260sert4564bdsafds45y6afasd7fdas\n\033[0m";
return $this;
}

/** move to __constructor */
$myParcelCollection = new MyParcelCollection();

Expand Down Expand Up @@ -79,7 +84,7 @@ public function additionProvider()
{
return [
101 => [
'api_key' => 'MYSNIzQWqNrYaDeFxJtVrujS9YEuF9kiykBxf8Sj',
'api_key' => getenv('API_KEY'),
'cc' => 'NL',
'person' => 'Reindert',
'company' => 'Big Sale BV',
Expand All @@ -92,7 +97,7 @@ public function additionProvider()
'city' => 'Rijnsburg',
],
104 => [
'api_key' => 'a5cbbf2a81e3a7fe51752f51cedb157acffe6f1f',
'api_key' => getenv('API_KEY2'),
'cc' => 'NL',
'person' => 'Piet',
'company' => 'Mega Store',
Expand All @@ -112,7 +117,7 @@ public function additionProvider()
'label_description' => 'Label description',
],
105 => [
'api_key' => 'a5cbbf2a81e3a7fe51752f51cedb157acffe6f1f',
'api_key' => getenv('API_KEY2'),
'cc' => 'NL',
'person' => 'The insurance man',
'company' => 'Mega Store',
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "myparcelnl/sdk",
"version": "v1.1.8",
"version": "v1.1.9",
"description": "This package is designed to send and receive data from MyParcel by means of an API.",
"homepage": "https://www.myparcel.nl",
"tags": ["MyParcel", "My Parcel", "Post NL", "PostNL"],
Expand Down

0 comments on commit c74cd0e

Please sign in to comment.