diff --git a/tests/phpunit/tests/view-config.php b/tests/phpunit/tests/view-config.php index 745fbbaab6821..b3980ea34c69c 100644 --- a/tests/phpunit/tests/view-config.php +++ b/tests/phpunit/tests/view-config.php @@ -204,7 +204,7 @@ public function test_excerpt_layout_shows_placeholder_if_empty( $post_type ) { * * @return array[] */ - public function data_post_types_with_excerpt_in_form() { + public static function data_post_types_with_excerpt_in_form() { return array( 'page' => array( 'page' ), 'post' => array( 'post' ), @@ -268,7 +268,7 @@ public function test_author_layout_shows_placeholder_if_empty( $post_type ) { * * @return array[] */ - public function data_post_types_with_author_in_form() { + public static function data_post_types_with_author_in_form() { return array( 'page' => array( 'page' ), 'post' => array( 'post' ),