--- a/server/src/tests/Controllers/GeoStatsControllerTest.php Sat Jun 10 22:43:58 2017 +0200
+++ b/server/src/tests/Controllers/GeoStatsControllerTest.php Mon Jun 12 14:53:59 2017 +0200
@@ -56,8 +56,10 @@
}
}", true));
- $this->get('/api/v1/stats/geostats/')->assertTrue($this->response->isOk(), $this->response->content());
- $this->seeJsonEquals(["geostats" => [
+ $response = $this->get('/api/v1/stats/geostats/');
+ $response
+ ->assertStatus(200)
+ ->assertJson(["geostats" => [
'6255148' => 2684,
'3017382' => 2674,
'3027939' => 851
@@ -110,7 +112,8 @@
}
}", true));
- $this->get('/api/v1/stats/geostats/?area='.config('corpusparole.geonames_earth_geonamesid'))->assertTrue($this->response->isOk(), $this->response->content());
+ $response = $this->get('/api/v1/stats/geostats/?area='.config('corpusparole.geonames_earth_geonamesid'));
+ $response->assertStatus(200);
}
@@ -168,7 +171,8 @@
}
}", true));
- $this->get('/api/v1/stats/geostats/?area=code_area')->assertTrue($this->response->isOk(), $this->response->content());
+ $response = $this->get('/api/v1/stats/geostats/?area=code_area');
+ $response->assertStatus(200);
}
}