diff --git a/phpunit/class-gutenberg-rest-template-controller-test.php b/phpunit/class-gutenberg-rest-template-controller-test.php index 4fc3b5407e06e9..773974cf90e5e5 100644 --- a/phpunit/class-gutenberg-rest-template-controller-test.php +++ b/phpunit/class-gutenberg-rest-template-controller-test.php @@ -76,6 +76,7 @@ function find_and_normalize_template_by_id( $templates, $id ) { 'type' => 'wp_template', 'wp_id' => null, 'has_theme_file' => true, + 'author' => null, ), find_and_normalize_template_by_id( $data, 'tt1-blocks//index' ) ); @@ -101,6 +102,7 @@ function find_and_normalize_template_by_id( $templates, $id ) { 'wp_id' => null, 'area' => WP_TEMPLATE_PART_AREA_HEADER, 'has_theme_file' => true, + 'author' => null, ), find_and_normalize_template_by_id( $data, 'tt1-blocks//header' ) ); @@ -129,6 +131,7 @@ public function test_get_item() { 'type' => 'wp_template', 'wp_id' => null, 'has_theme_file' => true, + 'author' => null, ), $data ); @@ -155,6 +158,7 @@ public function test_get_item() { 'wp_id' => null, 'area' => WP_TEMPLATE_PART_AREA_HEADER, 'has_theme_file' => true, + 'author' => null, ), $data ); @@ -193,6 +197,7 @@ public function test_create_item() { 'raw' => 'Content', ), 'has_theme_file' => false, + 'author' => 2, ), $data ); @@ -231,6 +236,7 @@ public function test_create_item() { ), 'area' => 'header', 'has_theme_file' => false, + 'author' => 2, ), $data );