public function testQuery() { $app_id = "XASVlMZE1IVe3zCDpHT5mzhTiEd3su7IWM68Uepa"; $rest_key = "zBwmJIkcOE1dvX3GUIpJT5ebLOhhPhn1NmsdWC6e"; $master_key = "0zNVL0uJnxUiU9r1Ogvii7vLW8tOASIyS5j5HK4G"; ParseClient::$HOST_NAME = "http://localhost/parse/public/"; ParseClient::initialize($app_id, $rest_key, $master_key); \App\Test::truncate(); $response = $this->generalQuery(); $this->assertArrayHasKey("results", $response); $this->assertEmpty($response["results"]); $this->objects = factory(\App\Test::class, 50)->create(); $response = $this->generalQuery(); $this->assertArrayHasKey("results", $response); $this->assertEquals(50, count($response["results"])); $response = $this->firstQuery(); $this->assertArrayHasKey("results", $response); $this->assertEquals(1, count($response["results"])); $response = $this->equalToQuery(); $this->assertArrayHasKey("results", $response); $this->assertEquals(1, count($response["results"])); $response = $this->notEqualToQuery(); $this->assertArrayHasKey("results", $response); $this->assertEquals(49, count($response["results"])); $response = $this->limitQuery(); $this->assertArrayHasKey("results", $response); $this->assertEquals(10, count($response["results"])); }