PluginProbe ʕ •ᴥ•ʔ
Cookiebot by Usercentrics – Automatic Cookie Banner for GDPR/CCPA & Google Consent Mode / 4.5.9
Cookiebot by Usercentrics – Automatic Cookie Banner for GDPR/CCPA & Google Consent Mode v4.5.9
4.7.2 4.7.1 trunk 2.3.0 2.4.0 2.4.1 2.4.2 2.5.0 3.0.0 3.0.1 3.1.0 3.10.0 3.10.1 3.11.1 3.11.2 3.11.3 3.2.0 3.3.0 3.3.1 3.4.0 3.4.1 3.4.2 3.5.0 3.6.0 3.6.1 3.6.2 3.6.5 3.6.6 3.7.0 3.7.1 3.8.0 3.9.0 4.0.0 4.0.1 4.0.2 4.0.3 4.1.0 4.1.1 4.2.0 4.2.1 4.2.10 4.2.11 4.2.12 4.2.13 4.2.14 4.2.2 4.2.3 4.2.4 4.2.5 4.2.6 4.2.7 4.2.8 4.2.9 4.3.0 4.3.1 4.3.10 4.3.11 4.3.12 4.3.2 4.3.3 4.3.4 4.3.5 4.3.6 4.3.7 4.3.7.1 4.3.8 4.3.9 4.3.9.1 4.4.0 4.4.1 4.4.2 4.5.0 4.5.1 4.5.10 4.5.11 4.5.2 4.5.3 4.5.4 4.5.5 4.5.6 4.5.7 4.5.8 4.5.9 4.6.0 4.6.1 4.6.2 4.6.3 4.6.4 4.6.5 4.6.6 4.6.7 4.7.0
cookiebot / tests / integration / addons / Test_Google_Analytics.php
cookiebot / tests / integration / addons Last commit date
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_Google_Analytics.php
25 lines
1 <?php
2
3 namespace cybot\cookiebot\tests\integration\addons;
4
5 use cybot\cookiebot\addons\controller\addons\google_analytics\Google_Analytics;
6 use PHPUnit\Framework\ExpectationFailedException;
7 use SebastianBergmann\RecursionContext\InvalidArgumentException;
8 use WP_UnitTestCase;
9
10 class Test_Google_Analytics extends WP_UnitTestCase {
11
12 /**
13 * @covers \cybot\cookiebot\addons\controller\addons\google_analytics\Google_Analytics
14 * @throws ExpectationFailedException
15 * @throws InvalidArgumentException
16 * @throws \Exception
17 */
18 public function test_is_plugin_compatible() {
19 $content = Google_Analytics::get_svn_file_content( 'class/class-ga-frontend.php' );
20
21 $this->assertNotFalse( strpos( $content, 'add_action( \'wp_head\', \'Ga_Frontend::insert_ga_script\' );' ) );
22 $this->assertNotFalse( strpos( $content, 'add_action( \'wp_enqueue_scripts\', \'Ga_Frontend::platform_sharethis\' );' ) );
23 }
24 }
25