Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-04-12 20:12:17 +0300
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-04-16 16:17:02 +0300
commit3e5ea9b0a92c8c1210b2349491d7460835cba738 (patch)
treed7ce17805181e4c99d7df63d0a4477b2f6b50034 /build/integration
parent056660bf7ce0e587be7276e640e424280ff66804 (diff)
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.php6
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);
}
/**