/** * Authenticated ping requests. * * @return void */ public function testPingAuth() { $response = Kinvey::pingAuth(array('authMode' => 'app')); $this->assertTrue(is_array($response), 'Response is array'); $this->assertArrayHasKey('version', $response, 'Response has version key'); $this->assertArrayHasKey('kinvey', $response, 'Response has kinvey key'); $this->assertEquals('hello ' . Kinvey::getConfig('appName'), $response['kinvey'], 'Kinvey key is equal to hello ' . Kinvey::getConfig('appName')); }