|
@@ 169-175 (lines=7) @@
|
| 166 |
|
$this->assertTrue($this->container->get('ivory.google_map.helper.formatter')->isDebug()); |
| 167 |
|
} |
| 168 |
|
|
| 169 |
|
public function testMapLanguage() |
| 170 |
|
{ |
| 171 |
|
$this->loadConfiguration($this->container, 'language'); |
| 172 |
|
$this->container->compile(); |
| 173 |
|
|
| 174 |
|
$this->assertSame('fr', $this->container->get('ivory.google_map.helper.renderer.loader')->getLanguage()); |
| 175 |
|
} |
| 176 |
|
|
| 177 |
|
public function testMapApiKey() |
| 178 |
|
{ |
|
@@ 177-183 (lines=7) @@
|
| 174 |
|
$this->assertSame('fr', $this->container->get('ivory.google_map.helper.renderer.loader')->getLanguage()); |
| 175 |
|
} |
| 176 |
|
|
| 177 |
|
public function testMapApiKey() |
| 178 |
|
{ |
| 179 |
|
$this->loadConfiguration($this->container, 'api_key'); |
| 180 |
|
$this->container->compile(); |
| 181 |
|
|
| 182 |
|
$this->assertSame('key', $this->container->get('ivory.google_map.helper.renderer.loader')->getKey()); |
| 183 |
|
} |
| 184 |
|
|
| 185 |
|
public function testDirections() |
| 186 |
|
{ |
|
@@ 216-222 (lines=7) @@
|
| 213 |
|
$this->assertSame(Directions::FORMAT_XML, $this->container->get('ivory.google_map.directions')->getFormat()); |
| 214 |
|
} |
| 215 |
|
|
| 216 |
|
public function testDirectionsApiKey() |
| 217 |
|
{ |
| 218 |
|
$this->loadConfiguration($this->container, 'directions_api_key'); |
| 219 |
|
$this->container->compile(); |
| 220 |
|
|
| 221 |
|
$this->assertSame('key', $this->container->get('ivory.google_map.directions')->getKey()); |
| 222 |
|
} |
| 223 |
|
|
| 224 |
|
public function testDirectionsBusinessAccount() |
| 225 |
|
{ |
|
@@ 302-308 (lines=7) @@
|
| 299 |
|
); |
| 300 |
|
} |
| 301 |
|
|
| 302 |
|
public function testDistanceMatrixApiKey() |
| 303 |
|
{ |
| 304 |
|
$this->loadConfiguration($this->container, 'distance_matrix_api_key'); |
| 305 |
|
$this->container->compile(); |
| 306 |
|
|
| 307 |
|
$this->assertSame('key', $this->container->get('ivory.google_map.distance_matrix')->getKey()); |
| 308 |
|
} |
| 309 |
|
|
| 310 |
|
public function testDistanceMatrixBusinessAccount() |
| 311 |
|
{ |
|
@@ 385-391 (lines=7) @@
|
| 382 |
|
$this->assertSame(Elevation::FORMAT_XML, $this->container->get('ivory.google_map.elevation')->getFormat()); |
| 383 |
|
} |
| 384 |
|
|
| 385 |
|
public function testElevationApiKey() |
| 386 |
|
{ |
| 387 |
|
$this->loadConfiguration($this->container, 'elevation_api_key'); |
| 388 |
|
$this->container->compile(); |
| 389 |
|
|
| 390 |
|
$this->assertSame('key', $this->container->get('ivory.google_map.elevation')->getKey()); |
| 391 |
|
} |
| 392 |
|
|
| 393 |
|
public function testElevationBusinessAccount() |
| 394 |
|
{ |
|
@@ 471-477 (lines=7) @@
|
| 468 |
|
); |
| 469 |
|
} |
| 470 |
|
|
| 471 |
|
public function testGeocoderApiKey() |
| 472 |
|
{ |
| 473 |
|
$this->loadConfiguration($this->container, 'geocoder_api_key'); |
| 474 |
|
$this->container->compile(); |
| 475 |
|
|
| 476 |
|
$this->assertSame('key', $this->container->get('ivory.google_map.geocoder')->getKey()); |
| 477 |
|
} |
| 478 |
|
|
| 479 |
|
public function testGeocoderBusinessAccount() |
| 480 |
|
{ |
|
@@ 558-564 (lines=7) @@
|
| 555 |
|
$this->assertSame(TimeZone::FORMAT_XML, $this->container->get('ivory.google_map.time_zone')->getFormat()); |
| 556 |
|
} |
| 557 |
|
|
| 558 |
|
public function testTimeZoneApiKey() |
| 559 |
|
{ |
| 560 |
|
$this->loadConfiguration($this->container, 'time_zone_api_key'); |
| 561 |
|
$this->container->compile(); |
| 562 |
|
|
| 563 |
|
$this->assertSame('key', $this->container->get('ivory.google_map.time_zone')->getKey()); |
| 564 |
|
} |
| 565 |
|
|
| 566 |
|
public function testTimeZoneBusinessAccount() |
| 567 |
|
{ |