Make WordPress Core

Ticket #14050: 14050-unittests.diff

File 14050-unittests.diff, 860 bytes (added by MikeHansenMe, 10 years ago)

see #30284

  • tests/phpunit/tests/shortcode.php

    diff --git a/tests/phpunit/tests/shortcode.php b/tests/phpunit/tests/shortcode.php
    index 2e61e72..7e8b971 100644
    a b EOF; 
    299299        }
    300300
    301301        /**
     302         * @ticket 14050
     303         */
     304        function test_shortcode_unautop() {
     305                // a blank line is added at the end, so test with it already there
     306                $test_string = "[footag]\n";
     307                $this->assertEquals( $test_string, shortcode_unautop( wpautop( $test_string ) ) );
     308        }
     309
     310        /**
     311         * @ticket 14050
     312         */
     313        function test_multiple_shortcode_unautop() {
     314                // a blank line is added at the end, so test with it already there
     315                $test_string = "[footag]\n[footag]\n";
     316                $actual = shortcode_unautop( wpautop( $test_string ) );
     317                $this->assertEquals( $test_string, $actual );
     318        }
     319
     320        /**
    302321         * @ticket 10326
    303322         */
    304323        function test_strip_shortcodes() {