addons-base.php
5 years ago
test-add-to-any.php
5 years ago
test-addthis.php
5 years ago
test-caos-host-analyticsjs-local-save-ga-local.php
5 years ago
test-caos-host-analyticsjs-local.php
5 years ago
test-custom-facebook-feed.php
5 years ago
test-enhanced-ecommerce-for-woocommerce-store.php
5 years ago
test-facebook-for-woocommerce.php
5 years ago
test-ga-google-analytics.php
5 years ago
test-gadwp.php
5 years ago
test-google-analyticator.php
5 years ago
test-google-analytics-plus.php
5 years ago
test-google-analytics.php
5 years ago
test-hubspot-leadin.php
5 years ago
test-hubspot-tracking-code.php
5 years ago
test-instagram-feed.php
5 years ago
test-jetpack-facebook-widget.php
5 years ago
test-jetpack-goodreads-widget.php
5 years ago
test-jetpack-google-maps-widget.php
5 years ago
test-jetpack-googleplus-badge-widget.php
5 years ago
test-jetpack-internet-defense-league-widget.php
5 years ago
test-jetpack-twitter-timeline-widget.php
5 years ago
test-lightspeed-cache.php
5 years ago
test-ninja-forms.php
5 years ago
test-official-facebook-pixel.php
5 years ago
test-optinmonster.php
5 years ago
test-pixel-caffeine.php
5 years ago
test-simple-share-buttons-adder.php
5 years ago
test-wd-google-analytics.php
5 years ago
test-wp-analytify.php
5 years ago
test-wp-mautic.php
5 years ago
test-wp-piwik.php
5 years ago
test-addthis.php
24 lines
| 1 | <?php |
| 2 | |
| 3 | namespace cookiebot_addons\tests\integration\addons; |
| 4 | |
| 5 | class Test_Addthis extends Addons_Base { |
| 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 = $this->curl_get_content( '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 |