Changeset 48114 for trunk/tests/phpunit/tests/post/getTheContent.php
- Timestamp:
- 06/21/2020 10:34:35 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/post/getTheContent.php
r46586 r48114 76 76 $this->assertSame( 'Bang', $found ); 77 77 } 78 79 /** 80 * @ticket 47824 81 */ 82 public function test_should_fall_back_to_post_global_outside_of_the_loop() { 83 $GLOBALS['post'] = self::factory()->post->create( array( 'post_content' => 'Foo' ) ); 84 85 $this->assertSame( 'Foo', get_the_content() ); 86 } 78 87 }
Note: See TracChangeset
for help on using the changeset viewer.