Skip to content

Commit 3fc95e5

Browse files
authored
Merge pull request facebookarchive#897 from yguedidi/fix_tests
Fix tests after merging 5.x
2 parents db9c1fe + abd0304 commit 3fc95e5

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/FacebookBatchRequestTest.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ public function testBatchRequestsWithOptionsGetConvertedToAnArray()
300300
$this->assertEquals([
301301
'headers' => $this->defaultHeaders(),
302302
'method' => 'GET',
303-
'relative_url' => '/' . Facebook::DEFAULT_GRAPH_VERSION . '/bar?access_token=foo_token&appsecret_proof=df4256903ba4e23636cc142117aa632133d75c642bd2a68955be1443bd14deb9',
303+
'relative_url' => '/bar?access_token=foo_token&appsecret_proof=df4256903ba4e23636cc142117aa632133d75c642bd2a68955be1443bd14deb9',
304304
'name' => 'foo_name',
305305
'omit_response_on_success' => false,
306306
], $batchRequestArray);
@@ -364,10 +364,9 @@ public function testPreppingABatchRequestWithOptionsProperlySetsThePostParams()
364364
$params = $batchRequest->getParams();
365365

366366
$expectedHeaders = json_encode($this->defaultHeaders());
367-
$version = Facebook::DEFAULT_GRAPH_VERSION;
368367

369368
$expectedBatchParams = [
370-
'batch' => '[{"headers":' . $expectedHeaders . ',"method":"GET","relative_url":"\\/' . $version . '\\/foo?access_token=foo_token&appsecret_proof=df4256903ba4e23636cc142117aa632133d75c642bd2a68955be1443bd14deb9",'
369+
'batch' => '[{"headers":' . $expectedHeaders . ',"method":"GET","relative_url":"\\/foo?access_token=foo_token&appsecret_proof=df4256903ba4e23636cc142117aa632133d75c642bd2a68955be1443bd14deb9",'
371370
. '"name":"foo_name","omit_response_on_success":false}]',
372371
'include_headers' => true,
373372
'access_token' => 'foo_token',

0 commit comments

Comments
 (0)