Skip to content

Commit 4333300

Browse files
committed
fixup! Add utility for semantically comparing a SCRIPT tag within HTML
1 parent 7bef55a commit 4333300

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/phpunit/tests/dependencies/scripts.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public function tear_down() {
6969
parent::tear_down();
7070
}
7171

72-
private function assertEqualHTMLScriptTagById( string $expected, string $html, ?string $message ) {
72+
private function assertEqualHTMLScriptTagById( string $expected, string $html, string $message = 'The SCRIPT tag did not match.' ) {
7373
$find_id_tag_processor = new WP_HTML_Tag_Processor( $expected );
7474
$find_id_tag_processor->next_token();
7575
$id = $find_id_tag_processor->get_attribute( 'id' );

0 commit comments

Comments
 (0)