| 173 | |
| 174 | function test_the_content_with_id() { |
| 175 | $post_content = <<<EOF |
| 176 | <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 = <<<EOF |
| 184 | <p><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 | } |