Skip to content

Commit

Permalink
Fix phpunit test for removed method
Browse files Browse the repository at this point in the history
  • Loading branch information
aristath committed Nov 8, 2024
1 parent d2b1fba commit 9877bdc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/phpunit/test-class-page-types.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,10 @@ public static function setUpBeforeClass(): void {
);

// Assign the post to the "homepage" page type.
\progress_planner()->get_page_types()->set_page_type_by_slug( self::$homepage_post_id, 'homepage' );
\progress_planner()->get_page_types()->set_page_type_by_id(
self::$homepage_post_id,
\get_term_by( 'slug', 'homepage', Page_Types::TAXONOMY_NAME )->term_id
);
}

/**
Expand Down

0 comments on commit 9877bdc

Please sign in to comment.