mirror of
https://github.com/retailcrm/graphql-php.git
synced 2025-02-06 15:59:24 +03:00
PHPUnit: Replaced deprecated method getMock() with getMockBuilder()
This commit is contained in:
parent
fa9611738d
commit
b4e6630c1d
@ -509,7 +509,11 @@ class ServerTest extends \PHPUnit_Framework_TestCase
|
|||||||
|
|
||||||
public function testHandleRequest()
|
public function testHandleRequest()
|
||||||
{
|
{
|
||||||
$mock = $this->getMock('GraphQL\Server', ['readInput', 'produceOutput']);
|
$mock = $this->getMockBuilder('GraphQL\Server')
|
||||||
|
->setMethods(['readInput', 'produceOutput'])
|
||||||
|
->getMock()
|
||||||
|
;
|
||||||
|
|
||||||
$mock->method('readInput')
|
$mock->method('readInput')
|
||||||
->will($this->returnValue(json_encode(['query' => '{err}'])));
|
->will($this->returnValue(json_encode(['query' => '{err}'])));
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user