equal
deleted
inserted
replaced
54 } ] |
54 } ] |
55 } |
55 } |
56 } |
56 } |
57 }", true)); |
57 }", true)); |
58 |
58 |
59 $this->get('/api/v1/stats/geostats/')->assertTrue($this->response->isOk(), $this->response->content()); |
59 $response = $this->get('/api/v1/stats/geostats/'); |
60 $this->seeJsonEquals(["geostats" => [ |
60 $response |
|
61 ->assertStatus(200) |
|
62 ->assertJson(["geostats" => [ |
61 '6255148' => 2684, |
63 '6255148' => 2684, |
62 '3017382' => 2674, |
64 '3017382' => 2674, |
63 '3027939' => 851 |
65 '3027939' => 851 |
64 ]]); |
66 ]]); |
65 } |
67 } |
108 \"buckets\" : [] |
110 \"buckets\" : [] |
109 } |
111 } |
110 } |
112 } |
111 }", true)); |
113 }", true)); |
112 |
114 |
113 $this->get('/api/v1/stats/geostats/?area='.config('corpusparole.geonames_earth_geonamesid'))->assertTrue($this->response->isOk(), $this->response->content()); |
115 $response = $this->get('/api/v1/stats/geostats/?area='.config('corpusparole.geonames_earth_geonamesid')); |
|
116 $response->assertStatus(200); |
114 } |
117 } |
115 |
118 |
116 |
119 |
117 public function testGetIndexArea() |
120 public function testGetIndexArea() |
118 { |
121 { |
166 \"buckets\" : [] |
169 \"buckets\" : [] |
167 } |
170 } |
168 } |
171 } |
169 }", true)); |
172 }", true)); |
170 |
173 |
171 $this->get('/api/v1/stats/geostats/?area=code_area')->assertTrue($this->response->isOk(), $this->response->content()); |
174 $response = $this->get('/api/v1/stats/geostats/?area=code_area'); |
|
175 $response->assertStatus(200); |
172 } |
176 } |
173 |
177 |
174 } |
178 } |