Skip to content

Commit

Permalink
refs #12568 | fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
thealien committed Jun 21, 2017
1 parent c251918 commit 563e571
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/Helper/AppSettingsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ public function testShouldMakeProperlyRequestToSetSettings () {

$curlReferenceConfig = array();
$curlReferenceConfig[CURLOPT_URL] = 'apiUrl/v1/companies/4/buckets/bucketName/apps/appName/custom?app_key=appKey';
$curlReferenceConfig[CURLOPT_CUSTOMREQUEST] = 'put';
$curlReferenceConfig[CURLOPT_CUSTOMREQUEST] = 'PUT';
$curlReferenceConfig[CURLOPT_RETURNTRANSFER] = true;
$curlReferenceConfig[CURLOPT_POSTFIELDS] = json_encode($values);
$curlReferenceConfig[CURLOPT_HTTPHEADER] = array(
Expand Down
6 changes: 3 additions & 3 deletions tests/Helper/ProfileTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ public function testShouldMakeProperlyRequestToDeleteProfile () {

$curlReferenceConfig = array();
$curlReferenceConfig[CURLOPT_URL] = 'apiUrl/v1/companies/4/buckets/bucketName/profiles/' . $profileId . '?app_key=appKey';
$curlReferenceConfig[CURLOPT_CUSTOMREQUEST] = 'delete';
$curlReferenceConfig[CURLOPT_CUSTOMREQUEST] = 'DELETE';
$curlReferenceConfig[CURLOPT_RETURNTRANSFER] = true;
$curlReferenceConfig[CURLOPT_HTTPHEADER] = array(
"Content-Type: application/json",
Expand Down Expand Up @@ -298,7 +298,7 @@ public function testShouldMakeProperlyRequestToSaveProfile () {

$curlReferenceConfig = array();
$curlReferenceConfig[CURLOPT_URL] = 'apiUrl/v1/companies/4/buckets/bucketName/profiles/' . $profileId . '?app_key=appKey';
$curlReferenceConfig[CURLOPT_CUSTOMREQUEST] = 'post';
$curlReferenceConfig[CURLOPT_CUSTOMREQUEST] = 'POST';
$curlReferenceConfig[CURLOPT_RETURNTRANSFER] = true;
$curlReferenceConfig[CURLOPT_POSTFIELDS] = '{"id":"' . $profileId . '","attributes":[],"sessions":[]}';
$curlReferenceConfig[CURLOPT_HTTPHEADER] = array(
Expand Down Expand Up @@ -435,7 +435,7 @@ public function testShouldMakeProperlyRequestToMergeProfiles () {

$curlReferenceConfig = array();
$curlReferenceConfig[CURLOPT_URL] = 'apiUrl/v1/companies/4/buckets/bucketName/profiles/' . $profileId1 . '?app_key=appKey';
$curlReferenceConfig[CURLOPT_CUSTOMREQUEST] = 'post';
$curlReferenceConfig[CURLOPT_CUSTOMREQUEST] = 'POST';
$curlReferenceConfig[CURLOPT_RETURNTRANSFER] = true;
$curlReferenceConfig[CURLOPT_POSTFIELDS] = '{"id":"' . $profileId1 . '","mergedProfiles":["' . $profileId2 . '"]}';
$curlReferenceConfig[CURLOPT_HTTPHEADER] = array(
Expand Down

0 comments on commit 563e571

Please sign in to comment.