aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-04-09 11:31:41 +0200
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-04-09 15:13:11 +0200
commit8b9bd37e4ed566adf6e20262280599108bb57c14 (patch)
treee3d0576c1012b890ead38a36e206903ee766795e
parenteae55761de914f47136e06bafd99898061080a08 (diff)
downloadnextcloud-server-8b9bd37e4ed566adf6e20262280599108bb57c14.tar.gz
nextcloud-server-8b9bd37e4ed566adf6e20262280599108bb57c14.zip
Fixed tests
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
-rw-r--r--apps/provisioning_api/tests/Controller/UsersControllerTest.php4
-rw-r--r--tests/lib/User/UserTest.php2
2 files changed, 3 insertions, 3 deletions
diff --git a/apps/provisioning_api/tests/Controller/UsersControllerTest.php b/apps/provisioning_api/tests/Controller/UsersControllerTest.php
index 3d6ab8f3ebf..148879d6d91 100644
--- a/apps/provisioning_api/tests/Controller/UsersControllerTest.php
+++ b/apps/provisioning_api/tests/Controller/UsersControllerTest.php
@@ -766,7 +766,7 @@ class UsersControllerTest extends TestCase {
$expected = [
'id' => 'UID',
- 'enabled' => 'true',
+ 'enabled' => true,
'storageLocation' => '/var/www/newtcloud/data/UID',
'lastLogin' => 1521191471000,
'backend' => 'Database',
@@ -881,7 +881,7 @@ class UsersControllerTest extends TestCase {
$expected = [
'id' => 'UID',
- 'enabled' => 'true',
+ 'enabled' => true,
'storageLocation' => '/var/www/newtcloud/data/UID',
'lastLogin' => 1521191471000,
'backend' => 'Database',
diff --git a/tests/lib/User/UserTest.php b/tests/lib/User/UserTest.php
index acb171d92e3..2a99e725ec7 100644
--- a/tests/lib/User/UserTest.php
+++ b/tests/lib/User/UserTest.php
@@ -816,7 +816,7 @@ class UserTest extends TestCase {
->method('triggerChange')
->with(
'enabled',
- 'false'
+ false
);
$user->setEnabled(false);