Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
WPCS
  • Loading branch information
dream-encode committed Nov 10, 2022
commit b4905cbf4c62daa1ccb272e900e78f94f0d5da74
10 changes: 5 additions & 5 deletions tests/phpunit/tests/theme/wpThemeJson.php
Original file line number Diff line number Diff line change
Expand Up @@ -4035,7 +4035,7 @@ public function test_update_separator_declarations( $separator_block_settings, $
function data_update_separator_declarations() {
return array(
// If only background is defined, test that includes border-color to the style so it is applied on the front end.
'only background' => array(
'only background' => array(
array(
'color' => array(
'background' => 'blue',
Expand All @@ -4044,7 +4044,7 @@ function data_update_separator_declarations() {
'expected_output' => 'body { margin: 0; }.wp-site-blocks > .alignleft { float: left; margin-right: 2em; }.wp-site-blocks > .alignright { float: right; margin-left: 2em; }.wp-site-blocks > .aligncenter { justify-content: center; margin-left: auto; margin-right: auto; }.wp-block-separator{background-color: blue;color: blue;}',
),
// If background and text are defined, do not include border-color, as text color is enough.
'background and text, no border-color' => array(
'background and text, no border-color' => array(
array(
'color' => array(
'background' => 'blue',
Expand All @@ -4054,7 +4054,7 @@ function data_update_separator_declarations() {
'expected_output' => 'body { margin: 0; }.wp-site-blocks > .alignleft { float: left; margin-right: 2em; }.wp-site-blocks > .alignright { float: right; margin-left: 2em; }.wp-site-blocks > .aligncenter { justify-content: center; margin-left: auto; margin-right: auto; }.wp-block-separator{background-color: blue;color: red;}',
),
// If only text is defined, do not include border-color, as by itself is enough.
'only text' => array(
'only text' => array(
array(
'color' => array(
'text' => 'red',
Expand All @@ -4063,7 +4063,7 @@ function data_update_separator_declarations() {
'expected_output' => 'body { margin: 0; }.wp-site-blocks > .alignleft { float: left; margin-right: 2em; }.wp-site-blocks > .alignright { float: right; margin-left: 2em; }.wp-site-blocks > .aligncenter { justify-content: center; margin-left: auto; margin-right: auto; }.wp-block-separator{color: red;}',
),
// If background, text, and border-color are defined, include everything, CSS specifity will decide which to apply.
'background, text, and border-color' => array(
'background, text, and border-color' => array(
array(
'color' => array(
'background' => 'blue',
Expand All @@ -4076,7 +4076,7 @@ function data_update_separator_declarations() {
'expected_output' => 'body { margin: 0; }.wp-site-blocks > .alignleft { float: left; margin-right: 2em; }.wp-site-blocks > .alignright { float: right; margin-left: 2em; }.wp-site-blocks > .aligncenter { justify-content: center; margin-left: auto; margin-right: auto; }.wp-block-separator{background-color: blue;border-color: pink;color: red;}',
),
// If background and border color are defined, include everything, CSS specifity will decide which to apply.
'background, text, and border-color' => array(
'background, text, and border-color' => array(
array(
'color' => array(
'background' => 'blue',
Expand Down