Skip to content

Commit

Permalink
add 'method' to list of methods that need mocking
Browse files Browse the repository at this point in the history
  • Loading branch information
enov committed Jun 11, 2015
1 parent 0ac6ff5 commit 01f7cc3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/kohana/request/client/InternalTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public function provider_response_failure_status()
public function test_response_failure_status($directory, $controller, $action, $uri, $expected)
{
// Mock for request object
$request = $this->getMock('Request', array('directory', 'controller', 'action', 'uri', 'response'), array($uri));
$request = $this->getMock('Request', array('directory', 'controller', 'action', 'uri', 'response', 'method'), array($uri));

$request->expects($this->any())
->method('directory')
Expand Down Expand Up @@ -94,4 +94,4 @@ public function test_response_failure_status($directory, $controller, $action, $

$this->assertSame($expected, $response->status());
}
}
}

0 comments on commit 01f7cc3

Please sign in to comment.