Test_Add_To_Any.php
1 year ago
Test_Addthis.php
1 year ago
Test_CAOS_Host_Analyticsjs_Local_Version_1_97.php
1 year ago
Test_Caos_Host_Analyticsjs_Local.php
1 year ago
Test_Custom_Facebook_Feed.php
1 year ago
Test_Custom_Facebook_Feed_Version_2_17_1.php
1 year ago
Test_Enhanced_Ecommerce_For_Woocommerce_Store.php
1 year ago
Test_Facebook_For_Woocommerce.php
1 year ago
Test_Ga_Google_Analytics.php
1 year ago
Test_Gadwp.php
1 year ago
Test_Google_Analyticator.php
1 year ago
Test_Google_Analytics.php
1 year ago
Test_Google_Site_Kit.php
1 year ago
Test_Hubspot_Leadin.php
1 year ago
Test_Hubspot_Tracking_Code.php
1 year ago
Test_Instagram_Feed.php
1 year ago
Test_Jetpack_Widgets.php
1 year ago
Test_Lightspeed_Cache.php
1 year ago
Test_Ninja_Forms.php
1 year ago
Test_Official_Facebook_Pixel.php
1 year ago
Test_Optinmonster.php
1 year ago
Test_Pixel_Caffeine.php
1 year ago
Test_Simple_Share_Buttons_Adder.php
1 year ago
Test_Wd_Google_Analytics.php
1 year ago
Test_Wp_Analytify.php
1 year ago
Test_Wp_Google_Analytics_Events.php
1 year ago
Test_Wp_Mautic.php
1 year ago
Test_Wp_Piwik.php
1 year ago
Test_Wp_Seopress.php
1 year ago
Test_Caos_Host_Analyticsjs_Local.php
43 lines
| 1 | <?php |
| 2 | |
| 3 | namespace cybot\cookiebot\tests\integration\addons; |
| 4 | |
| 5 | use WP_UnitTestCase; |
| 6 | use cybot\cookiebot\addons\controller\addons\caos_host_analyticsjs_local\CAOS_Host_Analyticsjs_Local; |
| 7 | use PHPUnit\Framework\ExpectationFailedException; |
| 8 | use SebastianBergmann\RecursionContext\InvalidArgumentException; |
| 9 | |
| 10 | class Test_Caos_Host_Analyticsjs_Local extends WP_UnitTestCase { |
| 11 | |
| 12 | /** |
| 13 | * @covers \cybot\cookiebot\addons\controller\addons\caos_host_analyticsjs_local\CAOS_Host_Analyticsjs_Local |
| 14 | * @throws ExpectationFailedException |
| 15 | * @throws InvalidArgumentException |
| 16 | * @throws \Exception |
| 17 | */ |
| 18 | public function test_is_plugin_compatible() { |
| 19 | $content = CAOS_Host_Analyticsjs_Local::get_svn_file_content( 'includes/frontend/class-tracking.php' ); |
| 20 | |
| 21 | $this->assertNotFalse( |
| 22 | strpos( |
| 23 | $content, |
| 24 | 'add_action( \'init\', [ $this, \'insert_tracking_code\' ] );' |
| 25 | ) |
| 26 | ); |
| 27 | |
| 28 | $this->assertNotFalse( |
| 29 | strpos( |
| 30 | $content, |
| 31 | 'add_filter( \'script_loader_tag\', [ $this, \'add_attributes\' ], 10, 2 );' |
| 32 | ) |
| 33 | ); |
| 34 | |
| 35 | $this->assertNotFalse( |
| 36 | strpos( |
| 37 | $content, |
| 38 | '\'render_tracking_code\' ]' |
| 39 | ) |
| 40 | ); |
| 41 | } |
| 42 | } |
| 43 |