Skip to content
Merged
Changes from all commits
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
5 changes: 3 additions & 2 deletions phpunit/class-wp-icon-test.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@ public function test_wp_get_icon_returns_empty_string_for_unknown_icon() {

public function test_wp_get_icon_default_attributes() {
$output = wp_get_icon( 'core/plus' );
// WP_HTML_Tag_Processor lowercases attribute names.
$this->assertStringContainsString( 'viewbox="0 0 24 24"', $output );
// WP 7.0+ lowercases `viewBox` to `viewbox` via the HTML API in
// `wp_kses()`; older versions keep the original casing.
$this->assertStringContainsStringIgnoringCase( 'viewbox="0 0 24 24"', $output );
$this->assertStringContainsString( 'width="24"', $output );
$this->assertStringContainsString( 'height="24"', $output );
$this->assertStringContainsString( 'aria-hidden="true"', $output );
Expand Down
Loading