Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Addison-Stavlo committed Aug 11, 2020
1 parent 9d0874a commit 5e99bc8
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions phpunit/class-block-supported-styles-test.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ function test_named_color_support() {
);

$expected_classes = 'wp-block-example foo-bar-class has-text-color has-red-color has-background has-black-background-color';
$expected_styles = 'test:style; ';
$expected_styles = 'test: style;';

$this->assert_content_and_styles_and_classes_match( $block, $expected_classes, $expected_styles );
}
Expand Down Expand Up @@ -189,7 +189,7 @@ function test_custom_color_support() {
'innerHTML' => array(),
);

$expected_styles = 'test:style; color: #000; background-color: #fff;';
$expected_styles = 'test: style; color: #000; background-color: #fff;';
$expected_classes = 'wp-block-example foo-bar-class has-text-color has-background';

$this->assert_content_and_styles_and_classes_match( $block, $expected_classes, $expected_styles );
Expand Down Expand Up @@ -221,7 +221,7 @@ function test_named_link_color_support() {
);

$expected_classes = 'wp-block-example foo-bar-class has-link-color';
$expected_styles = 'test:style; --wp--style--color--link:var(--wp--preset--color--red);';
$expected_styles = 'test: style; --wp--style--color--link: var(--wp--preset--color--red);';

$this->assert_content_and_styles_and_classes_match( $block, $expected_classes, $expected_styles );
}
Expand Down Expand Up @@ -252,7 +252,7 @@ function test_custom_link_color_support() {
);

$expected_classes = 'wp-block-example foo-bar-class has-link-color';
$expected_styles = 'test:style; --wp--style--color--link: #fff;';
$expected_styles = 'test: style; --wp--style--color--link: #fff;';

$this->assert_content_and_styles_and_classes_match( $block, $expected_classes, $expected_styles );
}
Expand Down Expand Up @@ -283,7 +283,7 @@ function test_named_gradient_support() {
);

$expected_classes = 'wp-block-example foo-bar-class has-background has-red-gradient-background';
$expected_styles = 'test:style; ';
$expected_styles = 'test: style;';

$this->assert_content_and_styles_and_classes_match( $block, $expected_classes, $expected_styles );
}
Expand Down Expand Up @@ -314,7 +314,7 @@ function test_custom_gradient_support() {
);

$expected_classes = 'wp-block-example foo-bar-class has-background';
$expected_styles = 'test:style; background: some-gradient-style;';
$expected_styles = 'test: style; background: some-gradient-style;';

$this->assert_content_and_styles_and_classes_match( $block, $expected_classes, $expected_styles );
}
Expand Down Expand Up @@ -379,7 +379,7 @@ function test_named_font_size() {
);

$expected_classes = 'wp-block-example foo-bar-class has-large-font-size';
$expected_styles = 'test:style; ';
$expected_styles = 'test: style;';

$this->assert_content_and_styles_and_classes_match( $block, $expected_classes, $expected_styles );
}
Expand Down Expand Up @@ -408,7 +408,7 @@ function test_custom_font_size() {
);

$expected_classes = 'wp-block-example foo-bar-class ';
$expected_styles = 'test:style; font-size: 10px;';
$expected_styles = 'test: style; font-size: 10px;';

$this->assert_content_and_styles_and_classes_match( $block, $expected_classes, $expected_styles );
}
Expand Down Expand Up @@ -465,7 +465,7 @@ function test_line_height() {
);

$expected_classes = 'wp-block-example foo-bar-class ';
$expected_styles = 'test:style; line-height: 10;';
$expected_styles = 'test: style; line-height: 10;';

$this->assert_content_and_styles_and_classes_match( $block, $expected_classes, $expected_styles );
}
Expand Down Expand Up @@ -521,7 +521,7 @@ function test_block_alignment() {
);

$expected_classes = 'wp-block-example foo-bar-class alignwide';
$expected_styles = 'test:style; ';
$expected_styles = 'test: style;';

$this->assert_content_and_styles_and_classes_match( $block, $expected_classes, $expected_styles );
}
Expand Down Expand Up @@ -595,7 +595,7 @@ function test_all_supported() {
);

$expected_classes = 'wp-block-example foo-bar-class has-text-color has-background alignwide';
$expected_styles = 'test:style; color: #000; background-color: #fff; background: some-gradient; font-size: 10px; line-height: 20;';
$expected_styles = 'test: style; color: #000; background-color: #fff; background: some-gradient; font-size: 10px; line-height: 20;';

$this->assert_content_and_styles_and_classes_match( $block, $expected_classes, $expected_styles );
}
Expand Down Expand Up @@ -637,7 +637,7 @@ function test_one_supported() {
);

$expected_classes = 'wp-block-example foo-bar-class ';
$expected_styles = 'test:style; font-size: 10px;';
$expected_styles = 'test: style; font-size: 10px;';

$this->assert_content_and_styles_and_classes_match( $block, $expected_classes, $expected_styles );
}
Expand Down

0 comments on commit 5e99bc8

Please sign in to comment.