1 | <?php |
||
15 | class TestGoogleMaps extends TestCase { |
||
16 | |||
17 | public function setUp() { |
||
18 | Google_Maps::register_script_condition(true); |
||
19 | wp_enqueue_scripts(); |
||
20 | } |
||
21 | |||
22 | /** |
||
23 | * @coversNothing |
||
24 | */ |
||
25 | function testScriptRegistered() { |
||
26 | $this->assertTrue(wp_script_is('google-maps', 'registered')); |
||
27 | $this->assertTrue(wp_script_is('map-control', 'registered')); |
||
28 | } |
||
29 | |||
30 | /** |
||
31 | * @coversNothing |
||
32 | * @depends testScriptRegistered |
||
33 | */ |
||
34 | function testScriptEnqueued() { |
||
35 | |||
36 | $this->assertTrue(wp_script_is('google-maps', 'enqueued')); |
||
37 | $this->assertTrue(wp_script_is('map-control', 'enqueued')); |
||
38 | |||
40 | } |