From d2d9f74707803deb4845db83da2a604898908381 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Thu, 20 Apr 2017 12:37:59 +0200 Subject: Fix warning with undefined method Trying to configure method "getRemember" which cannot be configured because it does not exist, has not been specified, is final, or is static Signed-off-by: Joas Schilling --- tests/lib/Authentication/Token/DefaultTokenProviderTest.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/lib/Authentication/Token/DefaultTokenProviderTest.php') diff --git a/tests/lib/Authentication/Token/DefaultTokenProviderTest.php b/tests/lib/Authentication/Token/DefaultTokenProviderTest.php index bbfcd93913b..2c8c2d7e196 100644 --- a/tests/lib/Authentication/Token/DefaultTokenProviderTest.php +++ b/tests/lib/Authentication/Token/DefaultTokenProviderTest.php @@ -274,7 +274,7 @@ class DefaultTokenProviderTest extends TestCase { public function testRenewSessionTokenWithoutPassword() { $token = $this->getMockBuilder(DefaultToken::class) ->disableOriginalConstructor() - ->setMethods(['getUID', 'getLoginName', 'getPassword', 'getName']) + ->setMethods(['getUID', 'getLoginName', 'getPassword', 'getName', 'getRemember']) ->getMock(); $token ->expects($this->at(0)) @@ -293,7 +293,7 @@ class DefaultTokenProviderTest extends TestCase { ->method('getName') ->willReturn('MyTokenName'); $token - ->expects($this->at(3)) + ->expects($this->at(4)) ->method('getRemember') ->willReturn(IToken::DO_NOT_REMEMBER); $this->config @@ -325,7 +325,7 @@ class DefaultTokenProviderTest extends TestCase { public function testRenewSessionTokenWithPassword() { $token = $this->getMockBuilder(DefaultToken::class) ->disableOriginalConstructor() - ->setMethods(['getUID', 'getLoginName', 'getPassword', 'getName']) + ->setMethods(['getUID', 'getLoginName', 'getPassword', 'getName', 'getRemember']) ->getMock(); $token ->expects($this->at(0)) @@ -348,7 +348,7 @@ class DefaultTokenProviderTest extends TestCase { ->method('getName') ->willReturn('MyTokenName'); $token - ->expects($this->at(3)) + ->expects($this->at(5)) ->method('getRemember') ->willReturn(IToken::REMEMBER); $this->crypto -- cgit v1.2.3