Skip to content

Commit

Permalink
Update link element tests
Browse files Browse the repository at this point in the history
  • Loading branch information
oandregal committed Sep 13, 2021
1 parent 6a63a1f commit 7f697a9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions phpunit/class-elements-test.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function test_simple_paragraph_link_color() {
);
$this->assertSame(
$result,
'<p class="wp-elements-1">Hello <a href="http://www.wordpress.org/">WordPress</a>!</p><style>.wp-elements-1 a{color: var(--wp--preset--color--subtle-background) !important;}</style>' . "\n"
'<style>.wp-elements-1 a{color: var(--wp--preset--color--subtle-background);}</style>' . "\n" . '<p class="wp-elements-1">Hello <a href="http://www.wordpress.org/">WordPress</a>!</p>'
);
}

Expand Down Expand Up @@ -71,7 +71,7 @@ public function test_class_paragraph_link_color() {
);
$this->assertSame(
$result,
'<p class="wp-elements-1 has-dark-gray-background-color has-background">Hello <a href="http://www.wordpress.org/">WordPress</a>!</p><style>.wp-elements-1 a{color: red !important;}</style>' . "\n"
'<style>.wp-elements-1 a{color: red;}</style>' . "\n" . '<p class="wp-elements-1 has-dark-gray-background-color has-background">Hello <a href="http://www.wordpress.org/">WordPress</a>!</p>'
);
}

Expand Down Expand Up @@ -100,7 +100,7 @@ public function test_anchor_paragraph_link_color() {
);
$this->assertSame(
$result,
'<p id="anchor" class="wp-elements-1">Hello <a href="http://www.wordpress.org/">WordPress</a>!</p><style>.wp-elements-1 a{color: #fff000 !important;}</style>' . "\n"
'<style>.wp-elements-1 a{color: #fff000;}</style>' . "\n" . '<p id="anchor" class="wp-elements-1">Hello <a href="http://www.wordpress.org/">WordPress</a>!</p>'
);
}
}

0 comments on commit 7f697a9

Please sign in to comment.