@@ 222-233 (lines=12) @@ | ||
219 | $this->assertSame('key', $this->container->get('ivory.google_map.directions')->getKey()); |
|
220 | } |
|
221 | ||
222 | public function testDirectionsBusinessAccount() |
|
223 | { |
|
224 | $this->loadConfiguration($this->container, 'directions_business_account'); |
|
225 | $this->container->compile(); |
|
226 | ||
227 | $directions = $this->container->get('ivory.google_map.directions'); |
|
228 | ||
229 | $this->assertTrue($directions->hasBusinessAccount()); |
|
230 | $this->assertSame('my-client', $directions->getBusinessAccount()->getClientId()); |
|
231 | $this->assertSame('my-secret', $directions->getBusinessAccount()->getSecret()); |
|
232 | $this->assertFalse($directions->getBusinessAccount()->hasChannel()); |
|
233 | } |
|
234 | ||
235 | public function testDirectionsBusinessAccountChannel() |
|
236 | { |
|
@@ 235-246 (lines=12) @@ | ||
232 | $this->assertFalse($directions->getBusinessAccount()->hasChannel()); |
|
233 | } |
|
234 | ||
235 | public function testDirectionsBusinessAccountChannel() |
|
236 | { |
|
237 | $this->loadConfiguration($this->container, 'directions_business_account_channel'); |
|
238 | $this->container->compile(); |
|
239 | ||
240 | $directions = $this->container->get('ivory.google_map.directions'); |
|
241 | ||
242 | $this->assertTrue($directions->hasBusinessAccount()); |
|
243 | $this->assertSame('my-client', $directions->getBusinessAccount()->getClientId()); |
|
244 | $this->assertSame('my-secret', $directions->getBusinessAccount()->getSecret()); |
|
245 | $this->assertSame('my-channel', $directions->getBusinessAccount()->getChannel()); |
|
246 | } |
|
247 | ||
248 | /** |
|
249 | * @expectedException \Symfony\Component\Config\Definition\Exception\InvalidConfigurationException |
|
@@ 308-319 (lines=12) @@ | ||
305 | $this->assertSame('key', $this->container->get('ivory.google_map.distance_matrix')->getKey()); |
|
306 | } |
|
307 | ||
308 | public function testDistanceMatrixBusinessAccount() |
|
309 | { |
|
310 | $this->loadConfiguration($this->container, 'distance_matrix_business_account'); |
|
311 | $this->container->compile(); |
|
312 | ||
313 | $distanceMatrix = $this->container->get('ivory.google_map.distance_matrix'); |
|
314 | ||
315 | $this->assertTrue($distanceMatrix->hasBusinessAccount()); |
|
316 | $this->assertSame('my-client', $distanceMatrix->getBusinessAccount()->getClientId()); |
|
317 | $this->assertSame('my-secret', $distanceMatrix->getBusinessAccount()->getSecret()); |
|
318 | $this->assertFalse($distanceMatrix->getBusinessAccount()->hasChannel()); |
|
319 | } |
|
320 | ||
321 | public function testDistanceMatrixBusinessAccountChannel() |
|
322 | { |
|
@@ 321-332 (lines=12) @@ | ||
318 | $this->assertFalse($distanceMatrix->getBusinessAccount()->hasChannel()); |
|
319 | } |
|
320 | ||
321 | public function testDistanceMatrixBusinessAccountChannel() |
|
322 | { |
|
323 | $this->loadConfiguration($this->container, 'distance_matrix_business_account_channel'); |
|
324 | $this->container->compile(); |
|
325 | ||
326 | $distanceMatrix = $this->container->get('ivory.google_map.distance_matrix'); |
|
327 | ||
328 | $this->assertTrue($distanceMatrix->hasBusinessAccount()); |
|
329 | $this->assertSame('my-client', $distanceMatrix->getBusinessAccount()->getClientId()); |
|
330 | $this->assertSame('my-secret', $distanceMatrix->getBusinessAccount()->getSecret()); |
|
331 | $this->assertSame('my-channel', $distanceMatrix->getBusinessAccount()->getChannel()); |
|
332 | } |
|
333 | ||
334 | /** |
|
335 | * @expectedException \Symfony\Component\Config\Definition\Exception\InvalidConfigurationException |
|
@@ 394-405 (lines=12) @@ | ||
391 | $this->assertSame('key', $this->container->get('ivory.google_map.geocoder')->getKey()); |
|
392 | } |
|
393 | ||
394 | public function testGeocoderBusinessAccount() |
|
395 | { |
|
396 | $this->loadConfiguration($this->container, 'geocoder_business_account'); |
|
397 | $this->container->compile(); |
|
398 | ||
399 | $geocoder = $this->container->get('ivory.google_map.geocoder'); |
|
400 | ||
401 | $this->assertTrue($geocoder->hasBusinessAccount()); |
|
402 | $this->assertSame('my-client', $geocoder->getBusinessAccount()->getClientId()); |
|
403 | $this->assertSame('my-secret', $geocoder->getBusinessAccount()->getSecret()); |
|
404 | $this->assertFalse($geocoder->getBusinessAccount()->hasChannel()); |
|
405 | } |
|
406 | ||
407 | public function testGeocoderBusinessAccountChannel() |
|
408 | { |
|
@@ 407-418 (lines=12) @@ | ||
404 | $this->assertFalse($geocoder->getBusinessAccount()->hasChannel()); |
|
405 | } |
|
406 | ||
407 | public function testGeocoderBusinessAccountChannel() |
|
408 | { |
|
409 | $this->loadConfiguration($this->container, 'geocoder_business_account_channel'); |
|
410 | $this->container->compile(); |
|
411 | ||
412 | $geocoder = $this->container->get('ivory.google_map.geocoder'); |
|
413 | ||
414 | $this->assertTrue($geocoder->hasBusinessAccount()); |
|
415 | $this->assertSame('my-client', $geocoder->getBusinessAccount()->getClientId()); |
|
416 | $this->assertSame('my-secret', $geocoder->getBusinessAccount()->getSecret()); |
|
417 | $this->assertSame('my-channel', $geocoder->getBusinessAccount()->getChannel()); |
|
418 | } |
|
419 | ||
420 | /** |
|
421 | * @expectedException \Symfony\Component\Config\Definition\Exception\InvalidConfigurationException |
|
@@ 481-492 (lines=12) @@ | ||
478 | $this->assertSame('key', $this->container->get('ivory.google_map.time_zone')->getKey()); |
|
479 | } |
|
480 | ||
481 | public function testTimeZoneBusinessAccount() |
|
482 | { |
|
483 | $this->loadConfiguration($this->container, 'time_zone_business_account'); |
|
484 | $this->container->compile(); |
|
485 | ||
486 | $timeZone = $this->container->get('ivory.google_map.time_zone'); |
|
487 | ||
488 | $this->assertTrue($timeZone->hasBusinessAccount()); |
|
489 | $this->assertSame('my-client', $timeZone->getBusinessAccount()->getClientId()); |
|
490 | $this->assertSame('my-secret', $timeZone->getBusinessAccount()->getSecret()); |
|
491 | $this->assertFalse($timeZone->getBusinessAccount()->hasChannel()); |
|
492 | } |
|
493 | ||
494 | public function testTimeZoneBusinessAccountChannel() |
|
495 | { |
|
@@ 494-505 (lines=12) @@ | ||
491 | $this->assertFalse($timeZone->getBusinessAccount()->hasChannel()); |
|
492 | } |
|
493 | ||
494 | public function testTimeZoneBusinessAccountChannel() |
|
495 | { |
|
496 | $this->loadConfiguration($this->container, 'time_zone_business_account_channel'); |
|
497 | $this->container->compile(); |
|
498 | ||
499 | $timeZone = $this->container->get('ivory.google_map.time_zone'); |
|
500 | ||
501 | $this->assertTrue($timeZone->hasBusinessAccount()); |
|
502 | $this->assertSame('my-client', $timeZone->getBusinessAccount()->getClientId()); |
|
503 | $this->assertSame('my-secret', $timeZone->getBusinessAccount()->getSecret()); |
|
504 | $this->assertSame('my-channel', $timeZone->getBusinessAccount()->getChannel()); |
|
505 | } |
|
506 | ||
507 | /** |
|
508 | * @expectedException \Symfony\Component\Config\Definition\Exception\InvalidConfigurationException |