Changeset 1314 in tests
- Timestamp:
- 07/20/2013 08:57:06 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/post/output.php
r1293 r1314 172 172 } 173 173 174 function test_the_content_with_id() {175 $post_content = <<<EOF176 test_the_content_with_id <i>This is the excerpt.</i>177 <!--more-->178 This is the <b>body</b>.179 EOF;180 181 $post_id = $this->factory->post->create( compact( 'post_content' ) );182 183 $expected = <<<EOF184 <p>test_the_content_with_id <i>This is the excerpt.</i><br />185 <span id="more-{$post_id}"></span><br />186 This is the <b>body</b>.</p>187 EOF;188 189 $this->assertEquals( strip_ws( $expected ), strip_ws( get_echo( 'the_content', array( null, false, $post_id ) ) ) );190 }191 174 }
Note: See TracChangeset
for help on using the changeset viewer.