Skip to content

Commit 29d53ad

Browse files
committed
Ensure global post is a WP_Post not an int in test
1 parent a266d4e commit 29d53ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/phpunit/tests/user/getTheModifiedAuthor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public static function wpSetUpBeforeClass( WP_UnitTest_Factory $factory ) {
3737
public function set_up() {
3838
parent::set_up();
3939

40-
$GLOBALS['post'] = self::$post_id;
40+
$GLOBALS['post'] = get_post( self::$post_id );
4141
}
4242

4343
public function test_get_the_modified_author() {

0 commit comments

Comments
 (0)