From ec86c0b80fa7d174362342dcb347b8f259513bca Mon Sep 17 00:00:00 2001 From: Alex Lende Date: Wed, 8 Sep 2021 22:14:22 -0400 Subject: [PATCH] Update phpunit tests --- phpunit/class-wp-theme-json-test.php | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/phpunit/class-wp-theme-json-test.php b/phpunit/class-wp-theme-json-test.php index d88adc7f384a3e..86ffeb0c0f75ad 100644 --- a/phpunit/class-wp-theme-json-test.php +++ b/phpunit/class-wp-theme-json-test.php @@ -784,7 +784,9 @@ public function test_merge_incoming_data_empty_presets() { 'version' => WP_Theme_JSON_Gutenberg::LATEST_SCHEMA, 'settings' => array( 'color' => array( - 'duotone' => array(), + 'duotone' => array( + 'theme' => array(), + ), 'gradients' => array( 'theme' => array(), ), @@ -872,9 +874,11 @@ public function test_merge_incoming_data_null_presets() { 'color' => array( 'custom' => false, 'duotone' => array( - array( - 'slug' => 'value', - 'colors' => array( 'red', 'green' ), + 'theme' => array( + array( + 'slug' => 'value', + 'colors' => array( 'red', 'green' ), + ), ), ), 'gradients' => array(