@@ -63,12 +63,12 @@ |
||
| 63 | 63 | return $reflection->invoke( $class, $args ); |
| 64 | 64 | } |
| 65 | 65 | |
| 66 | - /** |
|
| 67 | - * @return string |
|
| 68 | - */ |
|
| 66 | + /** |
|
| 67 | + * @return string |
|
| 68 | + */ |
|
| 69 | 69 | public function get_sample_response() { |
| 70 | 70 | |
| 71 | - return file_get_contents( __DIR__ . '/geocoder-response.json' ); |
|
| 71 | + return file_get_contents( __DIR__ . '/geocoder-response.json' ); |
|
| 72 | 72 | |
| 73 | 73 | } |
| 74 | 74 | } |
| 75 | 75 | \ No newline at end of file |
@@ -14,24 +14,24 @@ |
||
| 14 | 14 | */ |
| 15 | 15 | class TestGoogleMaps extends TestCase { |
| 16 | 16 | |
| 17 | - /** |
|
| 18 | - * @covers ::_wp_enqueue_scripts_9 |
|
| 19 | - */ |
|
| 20 | - function testScriptRegistered() { |
|
| 21 | - $this->assertTrue(wp_script_is('google-maps', 'registered')); |
|
| 22 | - $this->assertTrue(wp_script_is('map-control', 'registered')); |
|
| 23 | - } |
|
| 24 | - |
|
| 25 | - /** |
|
| 26 | - * @covers ::_wp_enqueue_scripts_9 |
|
| 27 | - * @depends testScriptRegistered |
|
| 28 | - */ |
|
| 29 | - function testScriptEnqueued() { |
|
| 30 | - |
|
| 31 | - Google_Maps::register_script_condition(function(){return true;}); |
|
| 32 | - |
|
| 33 | - $this->assertTrue(wp_script_is('google-maps', 'enqueued')); |
|
| 34 | - $this->assertTrue(wp_script_is('map-control', 'enqueued')); |
|
| 35 | - |
|
| 36 | - } |
|
| 17 | + /** |
|
| 18 | + * @covers ::_wp_enqueue_scripts_9 |
|
| 19 | + */ |
|
| 20 | + function testScriptRegistered() { |
|
| 21 | + $this->assertTrue(wp_script_is('google-maps', 'registered')); |
|
| 22 | + $this->assertTrue(wp_script_is('map-control', 'registered')); |
|
| 23 | + } |
|
| 24 | + |
|
| 25 | + /** |
|
| 26 | + * @covers ::_wp_enqueue_scripts_9 |
|
| 27 | + * @depends testScriptRegistered |
|
| 28 | + */ |
|
| 29 | + function testScriptEnqueued() { |
|
| 30 | + |
|
| 31 | + Google_Maps::register_script_condition(function(){return true;}); |
|
| 32 | + |
|
| 33 | + $this->assertTrue(wp_script_is('google-maps', 'enqueued')); |
|
| 34 | + $this->assertTrue(wp_script_is('map-control', 'enqueued')); |
|
| 35 | + |
|
| 36 | + } |
|
| 37 | 37 | } |
| 38 | 38 | \ No newline at end of file |