| 1 |
<?php |
| 2 |
|
| 3 |
namespace cybot\cookiebot\tests\integration\addons; |
| 4 |
|
| 5 |
use cybot\cookiebot\addons\controller\addons\simple_share_buttons_adder\Simple_Share_Buttons_Adder; |
| 6 |
use PHPUnit\Framework\ExpectationFailedException; |
| 7 |
use SebastianBergmann\RecursionContext\InvalidArgumentException; |
| 8 |
use WP_UnitTestCase; |
| 9 |
|
| 10 |
class Test_Simple_Share_Buttons_Adder extends WP_UnitTestCase { |
| 11 |
|
| 12 |
/** |
| 13 |
* @covers \cybot\cookiebot\addons\controller\addons\simple_share_buttons_adder\Simple_Share_Buttons_Adder |
| 14 |
* @throws ExpectationFailedException |
| 15 |
* @throws InvalidArgumentException |
| 16 |
* @throws \Exception |
| 17 |
*/ |
| 18 |
public function test_is_plugin_compatible() { |
| 19 |
$content = Simple_Share_Buttons_Adder::get_svn_file_content( 'php/class-styles.php' ); |
| 20 |
|
| 21 |
$this->assertNotFalse( strpos( $content, "wp_enqueue_script( 'ssba-sharethis'" ) ); |
| 22 |
} |
| 23 |
} |
| 24 |
|