Skip to content

Commit 31c94ae

Browse files
bshafferTakashi Matsuo
authored andcommitted
fixes user mocks for phpunit (GoogleCloudPlatform#149)
1 parent d6a19e7 commit 31c94ae

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

appengine/standard/users/tests/unit/UsersApiTest.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,10 @@ public function createApplication()
2727
$app = require __DIR__ . '/../../app.php';
2828

2929
// Create mock user
30-
$this->user = $this->getMockBuilder('User')
31-
->setMethods(array('getNickname'))->getMock();
30+
$this->user = $this->getMockBuilder('google\appengine\api\users\User')
31+
->disableOriginalConstructor()
32+
->setMethods(array('getNickname'))
33+
->getMock();
3234

3335
// prevent HTML error exceptions
3436
unset($app['exception_handler']);

0 commit comments

Comments
 (0)