Changeset 34933 for trunk/tests/phpunit/tests/shortcode.php
- Timestamp:
- 10/08/2015 03:11:59 AM (10 years ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/shortcode.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/shortcode.php
r34774 r34933 633 633 return data_whole_posts(); 634 634 } 635 636 function test_php_and_js_shortcode_attribute_regexes_match() { 637 638 $file = file_get_contents( ABSPATH . WPINC . '/js/shortcode.js' ); 639 $matched = preg_match( '|\s+pattern = (\/.+\/)g;|', $file, $matches ); 640 $php = get_shortcode_atts_regex(); 641 642 $this->assertSame( 1, $matched ); 643 644 $js = str_replace( "\'", "'", $matches[1] ); 645 $this->assertSame( $php, $js ); 646 647 } 648 635 649 }
Note: See TracChangeset
for help on using the changeset viewer.