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

github.com/nextcloud/serverinfo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBjoern Schiessle <bjoern@schiessle.org>2016-08-10 16:29:13 +0300
committerBjoern Schiessle <bjoern@schiessle.org>2016-08-11 13:45:23 +0300
commit3a66c58eefd449ed9444c549791dff0657b6c491 (patch)
treeae2968be4197c4f01674402f6164bf47bccef068 /tests
parentbd6ade9d693d183400948977b852088d8e6105ec (diff)
use the new OCS Data Response
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/Controller/ApiControllerTest.php20
1 files changed, 10 insertions, 10 deletions
diff --git a/tests/lib/Controller/ApiControllerTest.php b/tests/lib/Controller/ApiControllerTest.php
index 7073a02..b891c24 100644
--- a/tests/lib/Controller/ApiControllerTest.php
+++ b/tests/lib/Controller/ApiControllerTest.php
@@ -122,16 +122,16 @@ class ApiControllerTest extends TestCase {
$result = $this->instance->info();
$this->assertTrue($result instanceof DataResponse);
$data = $result->getData();
- $this->assertTrue(isset($data['data']['nextcloud']));
- $this->assertTrue(isset($data['data']['server']));
-
- $this->assertSame('systemStatistics', $data['data']['nextcloud']['system']);
- $this->assertSame('storageStatistics', $data['data']['nextcloud']['storage']);
- $this->assertSame('shareStatistics', $data['data']['nextcloud']['shares']);
- $this->assertSame('unknown', $data['data']['server']['webserver']);
- $this->assertSame('databaseStatistics', $data['data']['server']['database']);
- $this->assertSame('phpStatistics', $data['data']['server']['php']);
- $this->assertSame('sessionStatistics', $data['data']['activeUsers']);
+ $this->assertTrue(isset($data['nextcloud']));
+ $this->assertTrue(isset($data['server']));
+
+ $this->assertSame('systemStatistics', $data['nextcloud']['system']);
+ $this->assertSame('storageStatistics', $data['nextcloud']['storage']);
+ $this->assertSame('shareStatistics', $data['nextcloud']['shares']);
+ $this->assertSame('unknown', $data['server']['webserver']);
+ $this->assertSame('databaseStatistics', $data['server']['database']);
+ $this->assertSame('phpStatistics', $data['server']['php']);
+ $this->assertSame('sessionStatistics', $data['activeUsers']);
}
}