diff --git tests/phpunit/tests/dependencies/scripts.php tests/phpunit/tests/dependencies/scripts.php
index efe5a7b..62691c0 100644
|
|
class Tests_Dependencies_Scripts extends WP_UnitTestCase { |
724 | 724 | |
725 | 725 | $this->assertEquals( $expected, get_echo( 'wp_print_scripts' ) ); |
726 | 726 | } |
| 727 | |
| 728 | /** |
| 729 | * @ticket 37877 |
| 730 | */ |
| 731 | function test_wp_add_inline_script_single_quotes() { |
| 732 | wp_enqueue_script( 'test-example', 'example.com', array(), null ); |
| 733 | wp_add_inline_script( 'test-example', '"Aujourd\'hui";' ); |
| 734 | |
| 735 | $expected = "<script type='text/javascript' src='http://example.com'></script>\n"; |
| 736 | $expected .= "<script type='text/javascript'>\n\"Aujourd'hui\";\n</script>\n"; |
| 737 | |
| 738 | $this->assertEquals( $expected, get_echo( 'wp_print_scripts' ) ); |
| 739 | } |
727 | 740 | } |