Skip to content

Commit

Permalink
Remove Sensor test and adds Key test
Browse files Browse the repository at this point in the history
  • Loading branch information
Diego Mosela committed Jul 7, 2016
1 parent 2541ac6 commit f8ca91f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/Helper/ApiHelperTest.php
Expand Up @@ -120,16 +120,16 @@ function load_ivory_google_map_api () { google.load("maps", "3", {"other_params"
$this->assertSame($expected, $this->apiHelper->render('en', array(), 'callback'));
}

public function testRenderWithSensor()
public function testRenderWithKey()
{
$expected = <<<EOF
<script type="text/javascript">
function load_ivory_google_map_api () { google.load("maps", "3", {"other_params":"language=en"}); };
function load_ivory_google_map_api () { google.load("maps", "3", {"other_params":"language=en&key=ABQIAAAApsu_yVyPoWjn3yp6vDxlSg"}); };
</script>
<script type="text/javascript" src="//www.google.com/jsapi?callback=load_ivory_google_map_api"></script>
EOF;

$this->assertSame($expected, $this->apiHelper->render('en', array(), null, true));
$this->assertSame($expected, $this->apiHelper->render('en', array(), null, 'ABQIAAAApsu_yVyPoWjn3yp6vDxlSg'));
}
}

0 comments on commit f8ca91f

Please sign in to comment.