| 1 |
<?php |
| 2 |
|
| 3 |
namespace cookiebot_addons\tests\integration\addons; |
| 4 |
|
| 5 |
class Test_Jetpack_Google_Maps_Widget extends Addons_Base { |
| 6 |
|
| 7 |
public function setUp() { |
| 8 |
|
| 9 |
} |
| 10 |
|
| 11 |
/** |
| 12 |
* This will validate if the hook "jetpack google maps widget" still exists |
| 13 |
* |
| 14 |
* @since 2.1.0 |
| 15 |
*/ |
| 16 |
public function test_google_maps_widget() { |
| 17 |
$content = $this->curl_get_content('http://plugins.svn.wordpress.org/jetpack/trunk/modules/widgets/contact-info.php'); |
| 18 |
|
| 19 |
$this->assertNotFalse( strpos( $content, 'do_action( \'jetpack_contact_info_widget_start\' );' ) ); |
| 20 |
$this->assertNotFalse( strpos( $content, 'do_action( \'jetpack_contact_info_widget_end\' );' ) ); |
| 21 |
$this->assertNotFalse( strpos( $content, 'do_action( \'jetpack_stats_extra\', \'widget_view\', \'contact_info\' );' ) ); |
| 22 |
} |
| 23 |
} |