|
@@ 208-214 (lines=7) @@
|
| 205 |
|
$this->assertFalse($this->container->get('ivory.google_map.directions')->isHttps()); |
| 206 |
|
} |
| 207 |
|
|
| 208 |
|
public function testDirectionsFormat() |
| 209 |
|
{ |
| 210 |
|
$this->loadConfiguration($this->container, 'directions_format'); |
| 211 |
|
$this->container->compile(); |
| 212 |
|
|
| 213 |
|
$this->assertSame(Directions::FORMAT_XML, $this->container->get('ivory.google_map.directions')->getFormat()); |
| 214 |
|
} |
| 215 |
|
|
| 216 |
|
public function testDirectionsApiKey() |
| 217 |
|
{ |
|
@@ 291-300 (lines=10) @@
|
| 288 |
|
$this->assertFalse($this->container->get('ivory.google_map.distance_matrix')->isHttps()); |
| 289 |
|
} |
| 290 |
|
|
| 291 |
|
public function testDistanceMatrixFormat() |
| 292 |
|
{ |
| 293 |
|
$this->loadConfiguration($this->container, 'distance_matrix_format'); |
| 294 |
|
$this->container->compile(); |
| 295 |
|
|
| 296 |
|
$this->assertSame( |
| 297 |
|
DistanceMatrix::FORMAT_XML, |
| 298 |
|
$this->container->get('ivory.google_map.distance_matrix')->getFormat() |
| 299 |
|
); |
| 300 |
|
} |
| 301 |
|
|
| 302 |
|
public function testDistanceMatrixApiKey() |
| 303 |
|
{ |
|
@@ 377-383 (lines=7) @@
|
| 374 |
|
$this->assertFalse($this->container->get('ivory.google_map.elevation')->isHttps()); |
| 375 |
|
} |
| 376 |
|
|
| 377 |
|
public function testElevationFormat() |
| 378 |
|
{ |
| 379 |
|
$this->loadConfiguration($this->container, 'elevation_format'); |
| 380 |
|
$this->container->compile(); |
| 381 |
|
|
| 382 |
|
$this->assertSame(Elevation::FORMAT_XML, $this->container->get('ivory.google_map.elevation')->getFormat()); |
| 383 |
|
} |
| 384 |
|
|
| 385 |
|
public function testElevationApiKey() |
| 386 |
|
{ |
|
@@ 460-469 (lines=10) @@
|
| 457 |
|
$this->assertFalse($this->container->get('ivory.google_map.geocoder')->isHttps()); |
| 458 |
|
} |
| 459 |
|
|
| 460 |
|
public function testGeocoderFormat() |
| 461 |
|
{ |
| 462 |
|
$this->loadConfiguration($this->container, 'geocoder_format'); |
| 463 |
|
$this->container->compile(); |
| 464 |
|
|
| 465 |
|
$this->assertSame( |
| 466 |
|
GeocoderProvider::FORMAT_XML, |
| 467 |
|
$this->container->get('ivory.google_map.geocoder')->getFormat() |
| 468 |
|
); |
| 469 |
|
} |
| 470 |
|
|
| 471 |
|
public function testGeocoderApiKey() |
| 472 |
|
{ |
|
@@ 550-556 (lines=7) @@
|
| 547 |
|
$this->container->get('ivory.google_map.time_zone'); |
| 548 |
|
} |
| 549 |
|
|
| 550 |
|
public function testTimeZoneFormat() |
| 551 |
|
{ |
| 552 |
|
$this->loadConfiguration($this->container, 'time_zone_format'); |
| 553 |
|
$this->container->compile(); |
| 554 |
|
|
| 555 |
|
$this->assertSame(TimeZone::FORMAT_XML, $this->container->get('ivory.google_map.time_zone')->getFormat()); |
| 556 |
|
} |
| 557 |
|
|
| 558 |
|
public function testTimeZoneApiKey() |
| 559 |
|
{ |