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