request->availableVersions(); static::assertEquals(200, $response->getStatusCode()); static::assertTrue($response->isSuccessful()); static::assertGreaterThan(0, count($response['versions'])); } /** * Available methods * * @group api_methods * * @return void */ public function testCredentials() { $client = static::getApiClient(); $response = $client->request->credentials(); static::assertEquals(200, $response->getStatusCode()); static::assertTrue($response->isSuccessful()); static::assertGreaterThan(0, count($response['credentials'])); } /** * System settings * * @group api_methods * * @return void */ public function testSettings() { $client = static::getApiClient(); $response = $client->request->settings(); static::assertEquals(200, $response->getStatusCode()); static::assertTrue($response->isSuccessful()); static::assertGreaterThan(0, count($response['settings'])); } /** * System info * * @group api_methods * * @return void */ public function testSystemInfo() { $client = static::getApiClient(); $response = $client->request->systemInfo(); static::assertEquals(200, $response->getStatusCode()); static::assertTrue($response->isSuccessful()); static::assertNotEmpty($response['systemVersion']); } }