Skip to content

Commit

Permalink
Test that single parts can be updated but the untouched ones remain e…
Browse files Browse the repository at this point in the history
…qual (#35759)
  • Loading branch information
oandregal authored Oct 20, 2021
1 parent 4b02914 commit 39be23f
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
18 changes: 16 additions & 2 deletions phpunit/class-wp-theme-json-resolver-test.php
Original file line number Diff line number Diff line change
Expand Up @@ -283,10 +283,24 @@ function test_merges_child_theme_json_into_parent_theme_json() {
),
),
),
'custom' => true,
'custom' => false,
'link' => true,
),
'blocks' => array(
'core/paragraph' => array(
'core/paragraph' => array(
'color' => array(
'palette' => array(
'theme' => array(
array(
'slug' => 'light',
'name' => 'Light',
'color' => '#f5f7f9',
),
),
),
),
),
'core/post-title' => array(
'color' => array(
'palette' => array(
'theme' => array(
Expand Down
4 changes: 2 additions & 2 deletions phpunit/data/themedir1/fse-child/theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@
"color": "#111827"
}
],
"custom": true
"link": true
},
"blocks": {
"core/paragraph": {
"core/post-title": {
"color": {
"palette": [
{
Expand Down

0 comments on commit 39be23f

Please sign in to comment.