diff options
Diffstat (limited to 'tests/lib/AppFramework/Http/RequestTest.php')
-rw-r--r-- | tests/lib/AppFramework/Http/RequestTest.php | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/tests/lib/AppFramework/Http/RequestTest.php b/tests/lib/AppFramework/Http/RequestTest.php index f80bffcb480..40698ef8d73 100644 --- a/tests/lib/AppFramework/Http/RequestTest.php +++ b/tests/lib/AppFramework/Http/RequestTest.php @@ -1568,8 +1568,18 @@ class RequestTest extends \Test\TestCase { } public function testGetCookieParams() { - $request = $this->createMock(Request::class); - $actual = $this->invokePrivate($request, 'getCookieParams'); + /** @var Request $request */ + $request = $this->getMockBuilder(Request::class) + ->setMethods(['getScriptName']) + ->setConstructorArgs([ + [], + $this->secureRandom, + $this->config, + $this->csrfTokenManager, + $this->stream + ]) + ->getMock(); + $actual = $request->getCookieParams(); $this->assertSame(session_get_cookie_params(), $actual); } |