Skip to content

Commit

Permalink
PHPCS fix
Browse files Browse the repository at this point in the history
  • Loading branch information
scruffian committed Feb 12, 2024
1 parent 57714c1 commit e255506
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions phpunit/class-wp-theme-json-test.php
Original file line number Diff line number Diff line change
Expand Up @@ -5204,15 +5204,15 @@ public function test_get_stylesheet_allows_current_item() {
'styles' => array(
'blocks' => array(
'core/navigation' => array(
'color' => array(
'color' => array(
'text' => 'green',
'background' => 'red',
),
'@currentItem' => array(
'@currentItem' => array(
'color' => array(
'text' => $expected_text_value,
'background' => $expected_background_value,
)
),
),
),
),
Expand All @@ -5223,7 +5223,7 @@ public function test_get_stylesheet_allows_current_item() {
// TODO: Make this a global for the entire test.
$base_styles = '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; }:where(.is-layout-flex){gap: 0.5em;}:where(.is-layout-grid){gap: 0.5em;}body .is-layout-flow > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}body .is-layout-flow > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}body .is-layout-flow > .aligncenter{margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}body .is-layout-constrained > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}body .is-layout-constrained > .aligncenter{margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)){max-width: var(--wp--style--global--content-size);margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > .alignwide{max-width: var(--wp--style--global--wide-size);}body .is-layout-flex{display: flex;}body .is-layout-flex{flex-wrap: wrap;align-items: center;}body .is-layout-flex > *{margin: 0;}body .is-layout-grid{display: grid;}body .is-layout-grid > *{margin: 0;}';

$expected = '.wp-block-navigation{background-color: red;color: green;}.wp-block-navigation .current-menu-item{background-color: '. $expected_background_value .';color: ' . $expected_text_value . ';}';
$expected = '.wp-block-navigation{background-color: red;color: green;}.wp-block-navigation .current-menu-item{background-color: ' . $expected_background_value . ';color: ' . $expected_text_value . ';}';

$generated = $theme_json->get_stylesheet();

Expand Down

0 comments on commit e255506

Please sign in to comment.