]> source.dussan.org Git - nextcloud-server.git/commitdiff
DefaultTokenProviderTest mocked/asserted the wrong method 3650/head
authorChristoph Wurst <christoph@winzerhof-wurst.at>
Tue, 28 Feb 2017 09:26:19 +0000 (10:26 +0100)
committerChristoph Wurst <christoph@winzerhof-wurst.at>
Tue, 28 Feb 2017 09:26:19 +0000 (10:26 +0100)
It's 'getRemember' instead of 'getRememberMe', hence some warnings
were generated by phpunit.

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
tests/lib/Authentication/Token/DefaultTokenProviderTest.php

index e354fcc7172b343d41c3f5f8e4372063eddb735b..bbfcd93913bec8cc6e5eeced74aef05354824ecb 100644 (file)
@@ -294,7 +294,7 @@ class DefaultTokenProviderTest extends TestCase {
                        ->willReturn('MyTokenName');
                $token
                        ->expects($this->at(3))
-                       ->method('getRememberMe')
+                       ->method('getRemember')
                        ->willReturn(IToken::DO_NOT_REMEMBER);
                $this->config
                        ->expects($this->exactly(2))
@@ -349,7 +349,7 @@ class DefaultTokenProviderTest extends TestCase {
                        ->willReturn('MyTokenName');
                $token
                        ->expects($this->at(3))
-                       ->method('getRememberMe')
+                       ->method('getRemember')
                        ->willReturn(IToken::REMEMBER);
                $this->crypto
                        ->expects($this->any(0))