@@ 206-212 (lines=7) @@ | ||
203 | $this->assertFalse($this->container->get('ivory.google_map.directions')->isHttps()); |
|
204 | } |
|
205 | ||
206 | public function testDirectionsFormat() |
|
207 | { |
|
208 | $this->loadConfiguration($this->container, 'directions_format'); |
|
209 | $this->container->compile(); |
|
210 | ||
211 | $this->assertSame(Directions::FORMAT_XML, $this->container->get('ivory.google_map.directions')->getFormat()); |
|
212 | } |
|
213 | ||
214 | public function testDirectionsApiKey() |
|
215 | { |
|
@@ 289-298 (lines=10) @@ | ||
286 | $this->assertFalse($this->container->get('ivory.google_map.distance_matrix')->isHttps()); |
|
287 | } |
|
288 | ||
289 | public function testDistanceMatrixFormat() |
|
290 | { |
|
291 | $this->loadConfiguration($this->container, 'distance_matrix_format'); |
|
292 | $this->container->compile(); |
|
293 | ||
294 | $this->assertSame( |
|
295 | DistanceMatrix::FORMAT_XML, |
|
296 | $this->container->get('ivory.google_map.distance_matrix')->getFormat() |
|
297 | ); |
|
298 | } |
|
299 | ||
300 | public function testDistanceMatrixApiKey() |
|
301 | { |
|
@@ 375-384 (lines=10) @@ | ||
372 | $this->assertFalse($this->container->get('ivory.google_map.geocoder')->isHttps()); |
|
373 | } |
|
374 | ||
375 | public function testGeocoderFormat() |
|
376 | { |
|
377 | $this->loadConfiguration($this->container, 'geocoder_format'); |
|
378 | $this->container->compile(); |
|
379 | ||
380 | $this->assertSame( |
|
381 | GeocoderProvider::FORMAT_XML, |
|
382 | $this->container->get('ivory.google_map.geocoder')->getFormat() |
|
383 | ); |
|
384 | } |
|
385 | ||
386 | public function testGeocoderApiKey() |
|
387 | { |
|
@@ 465-471 (lines=7) @@ | ||
462 | $this->container->get('ivory.google_map.time_zone'); |
|
463 | } |
|
464 | ||
465 | public function testTimeZoneFormat() |
|
466 | { |
|
467 | $this->loadConfiguration($this->container, 'time_zone_format'); |
|
468 | $this->container->compile(); |
|
469 | ||
470 | $this->assertSame(TimeZone::FORMAT_XML, $this->container->get('ivory.google_map.time_zone')->getFormat()); |
|
471 | } |
|
472 | ||
473 | public function testTimeZoneApiKey() |
|
474 | { |