diff options
author | Bjoern Schiessle <bjoern@schiessle.org> | 2016-08-10 16:29:13 +0300 |
---|---|---|
committer | Bjoern Schiessle <bjoern@schiessle.org> | 2016-08-11 13:45:23 +0300 |
commit | 3a66c58eefd449ed9444c549791dff0657b6c491 (patch) | |
tree | ae2968be4197c4f01674402f6164bf47bccef068 /tests | |
parent | bd6ade9d693d183400948977b852088d8e6105ec (diff) |
use the new OCS Data Response
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/Controller/ApiControllerTest.php | 20 |
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']); } } |