Skip to content

Commit b0206d4

Browse files
committed
Merge pull request #30 from clue-labs/resize
Fix execResize() to issue POST request
2 parents dea9c00 + 4d1dbbc commit b0206d4

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -856,7 +856,7 @@ public function execStart($exec, $config)
856856
*/
857857
public function execResize($exec, $w, $h)
858858
{
859-
return $this->browser->get(
859+
return $this->browser->post(
860860
$this->uri->expand(
861861
'/exec/{exec}/resize{?w,h}',
862862
array(

tests/ClientTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ public function testExecStart()
371371

372372
public function testExecResize()
373373
{
374-
$this->expectRequestFlow('get', '/exec/123/resize?w=800&h=600', $this->createResponse(), 'expectEmpty');
374+
$this->expectRequestFlow('POST', '/exec/123/resize?w=800&h=600', $this->createResponse(), 'expectEmpty');
375375

376376
$this->expectPromiseResolveWith('', $this->client->execResize(123, 800, 600));
377377
}

0 commit comments

Comments
 (0)