PluginProbe
Cookiebot by Usercentrics – Automatic Cookie Banner for GDPR/CCPA & Google Consent Mode / 4.7.3
Cookiebot by Usercentrics – Automatic Cookie Banner for GDPR/CCPA & Google Consent Mode v4.7.3
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 / tests / integration / addons / Test_Addthis.php

Test_Addthis.php in Cookiebot by Usercentrics – Automatic Cookie Banner for GDPR/CCPA & Google Consent Mode 4.7.3, at tests/integration/addons/Test_Addthis.php

26 lines 874 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace cybot\cookiebot\tests\integration\addons;
4
5 use cybot\cookiebot\addons\controller\addons\addthis\Addthis;
6 use PHPUnit\Framework\ExpectationFailedException;
7 use SebastianBergmann\RecursionContext\InvalidArgumentException;
8 use WP_UnitTestCase;
9
10 class Test_Addthis extends WP_UnitTestCase {
11
12 /**
13 * @covers \cybot\cookiebot\addons\controller\addons\addthis\Addthis
14 * @throws ExpectationFailedException
15 * @throws InvalidArgumentException
16 * @throws \Exception
17 */
18 public function test_is_plugin_compatible() {
19 $content = Addthis::get_svn_file_content( 'backend/AddThisPlugin.php' );
20
21 $this->assertNotFalse( strpos( $content, "'addthis_widget'," ) );
22 $this->assertNotFalse( strpos( $content, 'window.addthis_product ' ) );
23 $this->assertNotFalse( strpos( $content, 'add_action(\'wp_enqueue_scripts\', array($this, \'enqueueScripts\'));' ) );
24 }
25 }
26