Changeset 42343 for trunk/tests/phpunit/tests/post/getTheExcerpt.php
- Timestamp:
- 11/30/2017 11:09:33 PM (9 years ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/post/getTheExcerpt.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/post/getTheExcerpt.php
r38679 r42343 38 38 */ 39 39 public function test_the_excerpt_password_protected_post() { 40 $post = self::factory()->post->create_and_get( array( 'post_excerpt' => 'Post excerpt', 'post_password' => '1234' ) ); 40 $post = self::factory()->post->create_and_get( 41 array( 42 'post_excerpt' => 'Post excerpt', 43 'post_password' => '1234', 44 ) 45 ); 41 46 $this->assertSame( 'There is no excerpt because this is a protected post.', get_the_excerpt( $post ) ); 42 47 … … 50 55 public function test_the_excerpt_specific_post() { 51 56 $GLOBALS['post'] = self::factory()->post->create_and_get( array( 'post_excerpt' => 'Foo' ) ); 52 $post_id = self::factory()->post->create( array( 'post_excerpt' => 'Bar' ) );57 $post_id = self::factory()->post->create( array( 'post_excerpt' => 'Bar' ) ); 53 58 $this->assertSame( 'Bar', get_the_excerpt( $post_id ) ); 54 59 }
Note: See TracChangeset
for help on using the changeset viewer.