diff --git a/tests/phpunit/tests/formatting/WPTexturize.php b/tests/phpunit/tests/formatting/WPTexturize.php
index 1bc197b..16233f5 100644
|
a
|
b
|
class Tests_Formatting_WPTexturize extends WP_UnitTestCase { |
| 1738 | 1738 | ), |
| 1739 | 1739 | ); |
| 1740 | 1740 | } |
| 1741 | | |
| 1742 | | /** |
| 1743 | | * Test disabling shortcode texturization. |
| 1744 | | * |
| 1745 | | * @ticket 29557 |
| 1746 | | * @dataProvider data_unregistered_shortcodes |
| 1747 | | */ |
| 1748 | | function test_unregistered_shortcodes( $input, $output ) { |
| 1749 | | add_filter( 'no_texturize_shortcodes', array( $this, 'filter_shortcodes' ), 10, 1 ); |
| 1750 | | |
| 1751 | | $output = $this->assertEquals( $output, wptexturize( $input ) ); |
| 1752 | | |
| 1753 | | remove_filter( 'no_texturize_shortcodes', array( $this, 'filter_shortcodes' ), 10, 1 ); |
| 1754 | | return $output; |
| 1755 | | } |
| 1756 | 1741 | |
| 1757 | 1742 | function filter_shortcodes( $disabled ) { |
| 1758 | 1743 | $disabled[] = 'audio'; |