|
@@ 167-173 (lines=7) @@
|
| 164 |
|
$this->assertTrue($this->container->get('ivory.google_map.helper.formatter')->isDebug()); |
| 165 |
|
} |
| 166 |
|
|
| 167 |
|
public function testMapLanguage() |
| 168 |
|
{ |
| 169 |
|
$this->loadConfiguration($this->container, 'language'); |
| 170 |
|
$this->container->compile(); |
| 171 |
|
|
| 172 |
|
$this->assertSame('fr', $this->container->get('ivory.google_map.helper.renderer.loader')->getLanguage()); |
| 173 |
|
} |
| 174 |
|
|
| 175 |
|
public function testMapApiKey() |
| 176 |
|
{ |
|
@@ 175-181 (lines=7) @@
|
| 172 |
|
$this->assertSame('fr', $this->container->get('ivory.google_map.helper.renderer.loader')->getLanguage()); |
| 173 |
|
} |
| 174 |
|
|
| 175 |
|
public function testMapApiKey() |
| 176 |
|
{ |
| 177 |
|
$this->loadConfiguration($this->container, 'api_key'); |
| 178 |
|
$this->container->compile(); |
| 179 |
|
|
| 180 |
|
$this->assertSame('key', $this->container->get('ivory.google_map.helper.renderer.loader')->getKey()); |
| 181 |
|
} |
| 182 |
|
|
| 183 |
|
public function testDirections() |
| 184 |
|
{ |
|
@@ 214-220 (lines=7) @@
|
| 211 |
|
$this->assertSame(Directions::FORMAT_XML, $this->container->get('ivory.google_map.directions')->getFormat()); |
| 212 |
|
} |
| 213 |
|
|
| 214 |
|
public function testDirectionsApiKey() |
| 215 |
|
{ |
| 216 |
|
$this->loadConfiguration($this->container, 'directions_api_key'); |
| 217 |
|
$this->container->compile(); |
| 218 |
|
|
| 219 |
|
$this->assertSame('key', $this->container->get('ivory.google_map.directions')->getKey()); |
| 220 |
|
} |
| 221 |
|
|
| 222 |
|
public function testDirectionsBusinessAccount() |
| 223 |
|
{ |
|
@@ 300-306 (lines=7) @@
|
| 297 |
|
); |
| 298 |
|
} |
| 299 |
|
|
| 300 |
|
public function testDistanceMatrixApiKey() |
| 301 |
|
{ |
| 302 |
|
$this->loadConfiguration($this->container, 'distance_matrix_api_key'); |
| 303 |
|
$this->container->compile(); |
| 304 |
|
|
| 305 |
|
$this->assertSame('key', $this->container->get('ivory.google_map.distance_matrix')->getKey()); |
| 306 |
|
} |
| 307 |
|
|
| 308 |
|
public function testDistanceMatrixBusinessAccount() |
| 309 |
|
{ |
|
@@ 386-392 (lines=7) @@
|
| 383 |
|
); |
| 384 |
|
} |
| 385 |
|
|
| 386 |
|
public function testGeocoderApiKey() |
| 387 |
|
{ |
| 388 |
|
$this->loadConfiguration($this->container, 'geocoder_api_key'); |
| 389 |
|
$this->container->compile(); |
| 390 |
|
|
| 391 |
|
$this->assertSame('key', $this->container->get('ivory.google_map.geocoder')->getKey()); |
| 392 |
|
} |
| 393 |
|
|
| 394 |
|
public function testGeocoderBusinessAccount() |
| 395 |
|
{ |
|
@@ 473-479 (lines=7) @@
|
| 470 |
|
$this->assertSame(TimeZone::FORMAT_XML, $this->container->get('ivory.google_map.time_zone')->getFormat()); |
| 471 |
|
} |
| 472 |
|
|
| 473 |
|
public function testTimeZoneApiKey() |
| 474 |
|
{ |
| 475 |
|
$this->loadConfiguration($this->container, 'time_zone_api_key'); |
| 476 |
|
$this->container->compile(); |
| 477 |
|
|
| 478 |
|
$this->assertSame('key', $this->container->get('ivory.google_map.time_zone')->getKey()); |
| 479 |
|
} |
| 480 |
|
|
| 481 |
|
public function testTimeZoneBusinessAccount() |
| 482 |
|
{ |