| 1 |
<?php |
| 2 |
|
| 3 |
namespace cybot\cookiebot\tests\integration\addons; |
| 4 |
|
| 5 |
use cybot\cookiebot\addons\controller\addons\google_site_kit\Google_Site_Kit; |
| 6 |
use PHPUnit\Framework\ExpectationFailedException; |
| 7 |
use SebastianBergmann\RecursionContext\InvalidArgumentException; |
| 8 |
use WP_UnitTestCase; |
| 9 |
|
| 10 |
class Test_Google_Site_Kit extends WP_UnitTestCase { |
| 11 |
|
| 12 |
/** |
| 13 |
* @covers \cybot\cookiebot\addons\controller\addons\google_site_kit\Google_Site_Kit |
| 14 |
* @throws ExpectationFailedException |
| 15 |
* @throws InvalidArgumentException |
| 16 |
* @throws \Exception |
| 17 |
*/ |
| 18 |
public function test_is_plugin_compatible() { |
| 19 |
$content = Google_Site_Kit::get_svn_file_content( 'includes/Modules/Analytics_4/Web_Tag.php' ); |
| 20 |
|
| 21 |
$this->assertNotFalse( strpos( $content, "add_filter( 'script_loader_tag', \$this->get_method_proxy( 'filter_tag_output' ), 10, 2 );" ) ); |
| 22 |
} |
| 23 |
} |
| 24 |
|