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
Next Next commit
Update class name without Gutenberg on tests
  • Loading branch information
cbravobernal committed Nov 4, 2022
commit 620a79a8d318cdb4cf446465487a1f56217d7124
20 changes: 10 additions & 10 deletions tests/phpunit/tests/theme/wpThemeJson.php
Original file line number Diff line number Diff line change
Expand Up @@ -4003,9 +4003,9 @@ function data_set_spacing_sizes_when_invalid() {
*/
function test_update_separator_declarations() {
// If only background is defined, test that includes border-color to the style so it is applied on the front end.
$theme_json = new WP_Theme_JSON_Gutenberg(
$theme_json = new WP_Theme_JSON(
array(
'version' => WP_Theme_JSON_Gutenberg::LATEST_SCHEMA,
'version' => WP_Theme_JSON::LATEST_SCHEMA,
'styles' => array(
'blocks' => array(
'core/separator' => array(
Expand All @@ -4023,9 +4023,9 @@ function test_update_separator_declarations() {
$this->assertEquals( $expected, $stylesheet );

// If background and text are defined, do not include border-color, as text color is enough.
$theme_json = new WP_Theme_JSON_Gutenberg(
$theme_json = new WP_Theme_JSON(
array(
'version' => WP_Theme_JSON_Gutenberg::LATEST_SCHEMA,
'version' => WP_Theme_JSON::LATEST_SCHEMA,
'styles' => array(
'blocks' => array(
'core/separator' => array(
Expand All @@ -4044,9 +4044,9 @@ function test_update_separator_declarations() {
$this->assertEquals( $expected, $stylesheet );

// If only text is defined, do not include border-color, as by itself is enough.
$theme_json = new WP_Theme_JSON_Gutenberg(
$theme_json = new WP_Theme_JSON(
array(
'version' => WP_Theme_JSON_Gutenberg::LATEST_SCHEMA,
'version' => WP_Theme_JSON::LATEST_SCHEMA,
'styles' => array(
'blocks' => array(
'core/separator' => array(
Expand All @@ -4064,9 +4064,9 @@ function test_update_separator_declarations() {
$this->assertEquals( $expected, $stylesheet );

// If background, text, and border-color are defined, include everything, CSS specifity will decide which to apply.
$theme_json = new WP_Theme_JSON_Gutenberg(
$theme_json = new WP_Theme_JSON(
array(
'version' => WP_Theme_JSON_Gutenberg::LATEST_SCHEMA,
'version' => WP_Theme_JSON::LATEST_SCHEMA,
'styles' => array(
'blocks' => array(
'core/separator' => array(
Expand All @@ -4088,9 +4088,9 @@ function test_update_separator_declarations() {
$this->assertEquals( $expected, $stylesheet );

// If background and border color are defined, include everything, CSS specifity will decide which to apply.
$theme_json = new WP_Theme_JSON_Gutenberg(
$theme_json = new WP_Theme_JSON(
array(
'version' => WP_Theme_JSON_Gutenberg::LATEST_SCHEMA,
'version' => WP_Theme_JSON::LATEST_SCHEMA,
'styles' => array(
'blocks' => array(
'core/separator' => array(
Expand Down