From 47f10dc44b4dc99411e2ea16309be86ba7304b57 Mon Sep 17 00:00:00 2001 From: Daniel Richards Date: Tue, 30 Nov 2021 17:24:44 +0800 Subject: [PATCH] Update template controller unit test now that author support is in WP core (#36987) --- phpunit/class-gutenberg-rest-template-controller-test.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpunit/class-gutenberg-rest-template-controller-test.php b/phpunit/class-gutenberg-rest-template-controller-test.php index e048b3d2343d6..34d2ed168122f 100644 --- a/phpunit/class-gutenberg-rest-template-controller-test.php +++ b/phpunit/class-gutenberg-rest-template-controller-test.php @@ -278,7 +278,7 @@ public function test_create_item() { 'has_theme_file' => false, 'is_custom' => true, 'origin' => null, - 'author' => 0, + 'author' => self::$admin_id, ), $data ); @@ -318,7 +318,7 @@ public function test_create_item() { 'area' => 'header', 'has_theme_file' => false, 'origin' => null, - 'author' => 0, + 'author' => self::$admin_id, ), $data );