diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2018-04-12 19:12:17 +0200 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2018-04-16 15:17:02 +0200 |
commit | 3e5ea9b0a92c8c1210b2349491d7460835cba738 (patch) | |
tree | d7ce17805181e4c99d7df63d0a4477b2f6b50034 /build/integration | |
parent | 056660bf7ce0e587be7276e640e424280ff66804 (diff) | |
download | nextcloud-server-3e5ea9b0a92c8c1210b2349491d7460835cba738.tar.gz nextcloud-server-3e5ea9b0a92c8c1210b2349491d7460835cba738.zip |
Return proper boolean user enabled state api
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'build/integration')
-rw-r--r-- | build/integration/features/bootstrap/Provisioning.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/build/integration/features/bootstrap/Provisioning.php b/build/integration/features/bootstrap/Provisioning.php index 2543777faa5..0bc99cc561d 100644 --- a/build/integration/features/bootstrap/Provisioning.php +++ b/build/integration/features/bootstrap/Provisioning.php @@ -694,7 +694,8 @@ trait Provisioning { ]; $this->response = $client->get($fullUrl, $options); - PHPUnit_Framework_Assert::assertEquals("false", simplexml_load_string($this->response->getBody())->data[0]->enabled); + // false in xml is empty + PHPUnit_Framework_Assert::assertTrue(empty(simplexml_load_string($this->response->getBody())->data[0]->enabled)); } /** @@ -713,7 +714,8 @@ trait Provisioning { ]; $this->response = $client->get($fullUrl, $options); - PHPUnit_Framework_Assert::assertEquals("true", simplexml_load_string($this->response->getBody())->data[0]->enabled); + // boolean to string is integer + PHPUnit_Framework_Assert::assertEquals("1", simplexml_load_string($this->response->getBody())->data[0]->enabled); } /** |