TEXT; $this->assertNotFalse( strpos( $content, $snippet ) ); } /** * @covers \cybot\cookiebot\addons\controller\addons\official_facebook_pixel\Official_Facebook_Pixel * @throws ExpectationFailedException * @throws InvalidArgumentException * @throws \Exception */ public function test_official_facebook_pixel_caldera_form() { $content = Official_Facebook_Pixel::get_svn_file_content( 'integration/class-facebookwordpresscalderaform.php' ); $snippet = <<assertNotFalse( strpos( $content, $snippet ) ); } /** * @covers \cybot\cookiebot\addons\controller\addons\official_facebook_pixel\Official_Facebook_Pixel * @throws ExpectationFailedException * @throws InvalidArgumentException * @throws \Exception */ public function test_official_facebook_pixel_contact_form_7() { $content = Official_Facebook_Pixel::get_svn_file_content( 'integration/class-facebookwordpresscontactform7.php' ); $snippets[] = <<assertNotFalse( strpos( $content, $snippet ) ); } } /** * @covers \cybot\cookiebot\addons\controller\addons\official_facebook_pixel\Official_Facebook_Pixel * @throws ExpectationFailedException * @throws InvalidArgumentException * @throws \Exception */ public function test_official_facebook_pixel_formidable_form() { $content = Official_Facebook_Pixel::get_svn_file_content( 'integration/class-facebookwordpressformidableform.php' ); $snippets[] = <<assertNotFalse( strpos( $content, $snippet ) ); } } /** * @covers \cybot\cookiebot\addons\controller\addons\official_facebook_pixel\Official_Facebook_Pixel * @throws ExpectationFailedException * @throws InvalidArgumentException * @throws \Exception */ public function test_official_facebook_pixel_easy_digital_downloads() { $content = Official_Facebook_Pixel::get_svn_file_content( 'integration/class-facebookwordpresseasydigitaldownloads.php' ); $snippets[] = << 'edd_after_checkout_cart', 'classname' => __CLASS__, 'inject_function' => 'injectInitiateCheckoutEvent', ) ); TEXT; $snippets[] = <<assertNotFalse( strpos( $content, $snippet ) ); } } /** * @covers \cybot\cookiebot\addons\controller\addons\official_facebook_pixel\Official_Facebook_Pixel * @throws ExpectationFailedException * @throws InvalidArgumentException * @throws \Exception */ public function test_official_facebook_pixel_mailchimp_for_wp() { $content = Official_Facebook_Pixel::get_svn_file_content( 'integration/class-facebookwordpressmailchimpforwp.php' ); $snippet = << 'mc4wp_form_subscribed', 'classname' => __CLASS__, 'inject_function' => 'injectLeadEvent', ) ); TEXT; $this->assertNotFalse( strpos( $content, $snippet ) ); } /** * @covers \cybot\cookiebot\addons\controller\addons\official_facebook_pixel\Official_Facebook_Pixel * @throws ExpectationFailedException * @throws InvalidArgumentException * @throws \Exception */ public function test_official_facebook_pixel_ninja_forms() { $content = Official_Facebook_Pixel::get_svn_file_content( 'integration/class-facebookwordpressninjaforms.php' ); $snippet = <<assertNotFalse( strpos( $content, $snippet ) ); } /** * @covers \cybot\cookiebot\addons\controller\addons\official_facebook_pixel\Official_Facebook_Pixel * @throws ExpectationFailedException * @throws InvalidArgumentException * @throws \Exception */ public function test_official_facebook_pixel_woocommerce() { $content = Official_Facebook_Pixel::get_svn_file_content( 'integration/class-facebookwordpresswoocommerce.php' ); $snippets[] = <<assertNotFalse( strpos( $content, $snippet ) ); } } /** * @covers \cybot\cookiebot\addons\controller\addons\official_facebook_pixel\Official_Facebook_Pixel * @throws ExpectationFailedException * @throws InvalidArgumentException * @throws \Exception */ public function test_official_facebook_pixel_WPECommerce() { $content = Official_Facebook_Pixel::get_svn_file_content( 'integration/class-facebookwordpresswpecommerce.php' ); $snippets[] = << 'wpsc_before_shopping_cart_page', 'classname' => __CLASS__, 'inject_function' => 'injectInitiateCheckoutEvent', ) ); TEXT; $snippets[] = <<assertNotFalse( strpos( $content, $snippet ) ); } } /** * @covers \cybot\cookiebot\addons\controller\addons\official_facebook_pixel\Official_Facebook_Pixel * @throws ExpectationFailedException * @throws InvalidArgumentException * @throws \Exception */ public function test_official_facebook_pixel_wp_forms() { $content = Official_Facebook_Pixel::get_svn_file_content( 'integration/class-facebookwordpresswpforms.php' ); $snippets[] = <<assertNotFalse( strpos( $content, $snippet ) ); } } /** * @covers \cybot\cookiebot\addons\controller\addons\official_facebook_pixel\Official_Facebook_Pixel * @throws ExpectationFailedException * @throws InvalidArgumentException * @throws \Exception */ public function test_official_facebook_pixel_integration_base() { $content = Official_Facebook_Pixel::get_svn_file_content( 'integration/class-facebookwordpressintegrationbase.php' ); $snippet = <<assertNotFalse( strpos( $content, $snippet ) ); } }