aboutsummaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2021-06-25 22:07:33 +0200
committerArthur Schiwon <blizzz@arthur-schiwon.de>2021-06-30 00:48:04 +0200
commit285a56bd82f08952f659319c93751e3b48bbc366 (patch)
tree05312f2f59f1da92d03ca37a14aa272ec9d5e6d1 /build
parent506227b5090edff883cb089aacd5bb65e8c1db03 (diff)
downloadnextcloud-server-285a56bd82f08952f659319c93751e3b48bbc366.tar.gz
nextcloud-server-285a56bd82f08952f659319c93751e3b48bbc366.zip
fix provisioning test check
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'build')
-rw-r--r--build/integration/features/bootstrap/Provisioning.php17
1 files changed, 9 insertions, 8 deletions
diff --git a/build/integration/features/bootstrap/Provisioning.php b/build/integration/features/bootstrap/Provisioning.php
index 3cc1366c52c..ad22925eddf 100644
--- a/build/integration/features/bootstrap/Provisioning.php
+++ b/build/integration/features/bootstrap/Provisioning.php
@@ -168,15 +168,16 @@ trait Provisioning {
$response = $client->get($fullUrl, $options);
foreach ($settings->getRows() as $setting) {
$value = json_decode(json_encode(simplexml_load_string($response->getBody())->data->{$setting[0]}), 1);
- if (isset($value[0])) {
- if (in_array($setting[0], ['additional_mail', 'additional_mailScope'], true)) {
- $expectedValues = explode(';', $setting[1]);
- foreach ($expectedValues as $expected) {
- Assert::assertTrue(in_array($expected, $value, true));
- }
- } else {
- Assert::assertEquals($setting[1], $value[0], "", 0.0, 10, true);
+ if (in_array($setting[0], ['additional_mail', 'additional_mailScope'], true)) {
+ var_dump($value);
+ }
+ if (isset($value['element']) && in_array($setting[0], ['additional_mail', 'additional_mailScope'], true)) {
+ $expectedValues = explode(';', $setting[1]);
+ foreach ($expectedValues as $expected) {
+ Assert::assertTrue(in_array($expected, $value['element'], true));
}
+ } elseif (isset($value[0])) {
+ Assert::assertEquals($setting[1], $value[0], "", 0.0, 10, true);
} else {
Assert::assertEquals('', $setting[1]);
}