Skip to content

Commit

Permalink
Use data_format=query for testPURGEWithData()
Browse files Browse the repository at this point in the history
  • Loading branch information
ocean90 committed Jul 30, 2016
1 parent 593972e commit 05bca1e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/Transport/Base.php
Original file line number Diff line number Diff line change
Expand Up @@ -278,11 +278,12 @@ public function testPURGEWithData() {
'test' => 'true',
'test2' => 'test',
);
$request = Requests::request(httpbin('/purge'), array(), $data, 'PURGE', $this->getOptions());
$request = Requests::request(httpbin('/purge'), array(), $data, 'PURGE', array_merge(array('data_format'=>'query'),$this->getOptions()));
$this->assertEquals(200, $request->status_code);

$result = json_decode($request->body, true);
$this->assertEquals(array('test' => 'true', 'test2' => 'test'), $result['form']);
$this->assertEquals(httpbin('/purge?test=true&test2=test'), $result['url']);
$this->assertEquals(array('test' => 'true', 'test2' => 'test'), $result['args']);
}

public function testRedirects() {
Expand Down

0 comments on commit 05bca1e

Please sign in to comment.