# cookiebot/4.7.4/tests/integration/addons/Test_Custom_Facebook_Feed.php

Cookiebot by Usercentrics – Automatic Cookie Banner for GDPR/CCPA &amp; Google Consent Mode, version 4.7.4. 26 lines.

- Page: https://pluginprobe.com/plugins/cookiebot/4.7.4/code/tests/integration/addons/Test_Custom_Facebook_Feed.php
- Raw: https://pluginprobe.com/plugins/cookiebot/4.7.4/raw/tests/integration/addons/Test_Custom_Facebook_Feed.php
- Modified: 2026-03-03T12:50:38+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/cookiebot/4.7.4/code/tests/integration/addons/Test_Custom_Facebook_Feed.php#L10-L20`.

```php
<?php

namespace cybot\cookiebot\tests\integration\addons;

use cybot\cookiebot\addons\controller\addons\custom_facebook_feed\Custom_Facebook_Feed;
use PHPUnit\Framework\ExpectationFailedException;
use SebastianBergmann\RecursionContext\InvalidArgumentException;
use WP_UnitTestCase;

class Test_Custom_Facebook_Feed extends WP_UnitTestCase {

	/**
	 * @covers \cybot\cookiebot\addons\controller\addons\custom_facebook_feed\Custom_Facebook_Feed
	 * @throws ExpectationFailedException
	 * @throws InvalidArgumentException
	 * @throws \Exception
	 */
	public function test_is_plugin_compatible() {
		$content = Custom_Facebook_Feed::get_svn_file_content( 'inc/Custom_Facebook_Feed.php' );

		$this->assertNotFalse( strpos( $content, 'echo \'var cfflinkhashtags = "\' . $cff_link_hashtags . \'";\';' ) );
		$this->assertNotFalse( strpos( $content, 'wp_enqueue_script(\'cffscripts\');' ) );
		$this->assertNotFalse( strpos( $content, 'add_action(\'wp_footer\', [ self::$instance, \'cff_js\' ]);' ) );
	}
}

```
