Created
February 17, 2015 15:37
-
-
Save aaroncampbell/ca84226b29f33197c909 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function test_multiple_shortcode_unautop() { | |
$test_strings = array( | |
"[footag][footag]\n", | |
"[footag]\n[footag]\n", | |
"[footag]\n\n[footag]\n", | |
); | |
foreach( $test_strings as $test_string ) { | |
$actual = shortcode_unautop( wpautop( $test_string ) ); | |
$this->assertEquals( trim( $test_string ), trim( $actual ) ); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment