WordPress.org

Make WordPress Core

Ticket #35022: 35022-test.diff

File 35022-test.diff, 575 bytes (added by boonebgorges, 4 years ago)
  • tests/phpunit/tests/shortcode.php

    diff --git tests/phpunit/tests/shortcode.php tests/phpunit/tests/shortcode.php
    index 9f6a71d..3dce032 100644
    EOF; 
    312312        }
    313313
    314314        /**
     315         * @ticket 35022
     316         */
     317        public function test_non_breaking_space_following_shortcode_tag() {
     318                do_shortcode( "[test-shortcode-tag\xA0 foo=\"bar\"]" );
     319                $this->assertSame( 'test-shortcode-tag', $this->tagname );
     320                $this->assertSame( array( 'foo' => 'bar' ), $this->atts );
     321        }
     322
     323        /**
    315324         * @ticket 6562
    316325         */
    317326        function test_utf8_whitespace_2() {