PluginProbe
Cookiebot by Usercentrics – Automatic Cookie Banner for GDPR/CCPA & Google Consent Mode / 3.5.0
Cookiebot by Usercentrics – Automatic Cookie Banner for GDPR/CCPA & Google Consent Mode v3.5.0
4.7.3 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 All 93 releases
cookiebot / addons / tests / integration / addons / test-addthis.php

test-addthis.php in Cookiebot by Usercentrics – Automatic Cookie Banner for GDPR/CCPA & Google Consent Mode 3.5.0, at addons/tests/integration/addons/test-addthis.php

24 lines 656 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace cookiebot_addons\tests\integration\addons;
4
5 class Test_Addthis extends \WP_UnitTestCase {
6
7 public function setUp() {
8
9 }
10
11 /**
12 * This will validate if the hook "caos_analytics_render_tracking_code" still exists
13 *
14 */
15 public function test_addthis() {
16 $content = file_get_contents( 'https://plugins.svn.wordpress.org/addthis/trunk/backend/AddThisPlugin.php' );
17
18 $this->assertNotFalse( strpos( $content, "'addthis_widget',") );
19 $this->assertNotFalse( strpos( $content, "window.addthis_product ") );
20 $this->assertNotFalse( strpos( $content, 'add_action(\'wp_enqueue_scripts\', array($this, \'enqueueScripts\'));') );
21
22 }
23 }
24