Changeset 575 in tests
- Timestamp:
- 03/14/2012 12:24:07 AM (14 years ago)
- File:
-
- 1 edited
-
wp-testcase/test_includes_formatting.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wp-testcase/test_includes_formatting.php
r574 r575 634 634 635 635 // Text before/after is wrapped in <p> tags 636 $str = "Look at this code <pre>$code</pre> Isn't that cool?"; 637 $this->assertEquals( '<p>Look at this code </p>' . "\n<pre>" . $code . "</pre>\n" . '<p> Isn\'t that cool?</p>', trim( wpautop( $str ) ) ); 636 $str = "Look at this code\n\n<pre>$code</pre>\n\nIsn't that cool?"; 637 638 // Expected text after wpautop 639 $expected = '<p>Look at this code</p>' . "\n<pre>" . $code . "</pre>\n" . '<p>Isn\'t that cool?</p>'; 640 $this->assertEquals( $expected, trim( wpautop( $str ) ) ); 638 641 } 639 642
Note: See TracChangeset
for help on using the changeset viewer.