/** * test for getting clients through RESTFUL API * * @return void */ public function testGetClientRecordApi() { $dataAccess = new DataAccess(); //assert that it does not return an empty list of clients $this->assertNotEquals(null, $dataAccess->getClientsApi()); //get detailed client through id, assert its not null $this->assertNotEquals(null, $dataAccess->getDetailedClientsApi($dataAccess->userIdByEmail('*****@*****.**'))); //get clients vists, assert its not null $this->assertNotEquals(null, $dataAccess->getVisits(1)); }