| 1 |
<?php |
| 2 |
|
| 3 |
namespace cybot\cookiebot\tests\integration\addons; |
| 4 |
|
| 5 |
use cybot\cookiebot\addons\controller\addons\wp_seopress\Wp_Seopress; |
| 6 |
use PHPUnit\Framework\ExpectationFailedException; |
| 7 |
use SebastianBergmann\RecursionContext\InvalidArgumentException; |
| 8 |
use WP_UnitTestCase; |
| 9 |
|
| 10 |
class Test_Wp_Seopress extends WP_UnitTestCase { |
| 11 |
|
| 12 |
/** |
| 13 |
* @covers cybot\cookiebot\addons\controller\addons\wp_seopress\Wp_Seopress |
| 14 |
* @throws ExpectationFailedException |
| 15 |
* @throws InvalidArgumentException |
| 16 |
* @throws \Exception |
| 17 |
*/ |
| 18 |
public function test_buffer_output_tag_wp_seopress() { |
| 19 |
$content = Wp_Seopress::get_svn_file_content( 'inc/functions/options-google-analytics.php' ); |
| 20 |
|
| 21 |
// test the content |
| 22 |
$this->assertNotFalse( strpos( $content, "add_action( 'seopress_google_analytics_html', 'seopress_google_analytics_js', 10, 1 );" ) ); |
| 23 |
} |
| 24 |
} |
| 25 |
|