diff --git tests/phpunit/tests/post/output.php tests/phpunit/tests/post/output.php
index 6026a2b..fb60157 100644
|
|
EOF; |
211 | 211 | |
212 | 212 | /** |
213 | 213 | * @ticket 27246 |
| 214 | * @ticket 37519 |
214 | 215 | */ |
215 | 216 | public function test_the_excerpt_specific_post() { |
216 | 217 | $GLOBALS['post'] = self::factory()->post->create_and_get( array( 'post_excerpt' => 'Foo' ) ); |
| 218 | |
| 219 | // Test with a manually assigned excerpt |
217 | 220 | $post_id = self::factory()->post->create( array( 'post_excerpt' => 'Bar' ) ); |
218 | 221 | $this->assertSame( 'Bar', get_the_excerpt( $post_id ) ); |
| 222 | |
| 223 | // Test with an automatically generated excerpt |
| 224 | $post_id = self::factory()->post->create( array( 'post_content' => 'Bar' ) ); |
| 225 | $this->assertSame( 'Bar', get_the_excerpt( $post_id ) ); |
219 | 226 | } |
220 | 227 | } |