diff --git a/tests/Helper/AppSettingsTest.php b/tests/Helper/AppSettingsTest.php index 5994d61..7799093 100644 --- a/tests/Helper/AppSettingsTest.php +++ b/tests/Helper/AppSettingsTest.php @@ -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( diff --git a/tests/Helper/ProfileTest.php b/tests/Helper/ProfileTest.php index 30ae8cf..502f47d 100644 --- a/tests/Helper/ProfileTest.php +++ b/tests/Helper/ProfileTest.php @@ -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", @@ -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( @@ -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(