summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@owncloud.com>2013-10-08 19:53:20 +0200
committerAndreas Fischer <bantu@owncloud.com>2013-10-08 19:57:37 +0200
commit114e9d44032bdaf4e1c117e5859f4fe864b23c78 (patch)
tree7eb2a8d5f5c3e7a5e73e42e9c1640152c872062d /tests
parent6eab36a89b790e2a9355384010f640c4017c03b2 (diff)
downloadnextcloud-server-114e9d44032bdaf4e1c117e5859f4fe864b23c78.tar.gz
nextcloud-server-114e9d44032bdaf4e1c117e5859f4fe864b23c78.zip
Adjust return value tests for checkPassword() to what OC_User_Example says.
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/user/backend.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/lib/user/backend.php b/tests/lib/user/backend.php
index 62ea0befbd7..1384c54a921 100644
--- a/tests/lib/user/backend.php
+++ b/tests/lib/user/backend.php
@@ -82,8 +82,8 @@ abstract class Test_User_Backend extends PHPUnit_Framework_TestCase {
$this->assertTrue($this->backend->userExists($name1));
$this->assertTrue($this->backend->userExists($name2));
- $this->assertTrue($this->backend->checkPassword($name1, 'pass1'));
- $this->assertTrue($this->backend->checkPassword($name2, 'pass2'));
+ $this->assertSame($name1, $this->backend->checkPassword($name1, 'pass1'));
+ $this->assertSame($name2, $this->backend->checkPassword($name2, 'pass2'));
$this->assertFalse($this->backend->checkPassword($name1, 'pass2'));
$this->assertFalse($this->backend->checkPassword($name2, 'pass1'));
@@ -93,7 +93,7 @@ abstract class Test_User_Backend extends PHPUnit_Framework_TestCase {
$this->backend->setPassword($name1, 'newpass1');
$this->assertFalse($this->backend->checkPassword($name1, 'pass1'));
- $this->assertTrue($this->backend->checkPassword($name1, 'newpass1'));
+ $this->assertSame($name1, $this->backend->checkPassword($name1, 'newpass1'));
$this->assertFalse($this->backend->checkPassword($name2, 'newpass1'));
}
}