summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2017-02-28 10:26:19 +0100
committerChristoph Wurst <christoph@winzerhof-wurst.at>2017-02-28 10:26:19 +0100
commite782f90d984bff28d15edbe0b30d921d9e4a96ee (patch)
treec580de94a4f3fd8e10184869fdc31a1c642a51ce /tests
parentb72b02778dac5b1ab15594de8dce0ccd04a030ba (diff)
downloadnextcloud-server-e782f90d984bff28d15edbe0b30d921d9e4a96ee.tar.gz
nextcloud-server-e782f90d984bff28d15edbe0b30d921d9e4a96ee.zip
DefaultTokenProviderTest mocked/asserted the wrong method
It's 'getRemember' instead of 'getRememberMe', hence some warnings were generated by phpunit. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/Authentication/Token/DefaultTokenProviderTest.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/lib/Authentication/Token/DefaultTokenProviderTest.php b/tests/lib/Authentication/Token/DefaultTokenProviderTest.php
index e354fcc7172..bbfcd93913b 100644
--- a/tests/lib/Authentication/Token/DefaultTokenProviderTest.php
+++ b/tests/lib/Authentication/Token/DefaultTokenProviderTest.php
@@ -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))