Skip to content

Commit e1ea23c

Browse files
committed
Address static analysis nits
1 parent 46b4df4 commit e1ea23c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

plugins/performance-lab/tests/includes/site-health/audit-enqueued-assets/test-audit-enqueued-assets-helper.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ public function test_perflab_aea_blocking_assets_retrieval_failure_404_html(): v
455455
'headers' => array(
456456
'content-type' => array( 'text/html' ),
457457
),
458-
'body' => '<html>WOOPS!!</html>',
458+
'body' => '<html lang="en">Whoops!!</html>',
459459
);
460460
$result = perflab_aea_blocking_assets_retrieval_failure( $response );
461461
$this->assertIsArray( $result );
@@ -563,7 +563,7 @@ public function test_perflab_aea_generate_blocking_assets_table_scripts(): void
563563
$table = perflab_aea_generate_blocking_assets_table(
564564
array_merge(
565565
array( 'styles' => array() ),
566-
Audit_Assets_Mock_Assets::mock_assets( 'scripts', 5 )
566+
Audit_Assets_Mock_Assets::mock_assets( 'scripts' )
567567
)
568568
);
569569
$processor = new WP_HTML_Tag_Processor( $table );
@@ -579,7 +579,7 @@ public function test_perflab_aea_generate_blocking_assets_table_css(): void {
579579
$table = perflab_aea_generate_blocking_assets_table(
580580
array_merge(
581581
array( 'scripts' => array() ),
582-
Audit_Assets_Mock_Assets::mock_assets( 'styles', 5 )
582+
Audit_Assets_Mock_Assets::mock_assets( 'styles' )
583583
)
584584
);
585585
$processor = new WP_HTML_Tag_Processor( $table );
@@ -621,7 +621,7 @@ static function ( $r, $args, $url ) {
621621
'status' => 200,
622622
'message' => 'OK',
623623
),
624-
'body' => '<html></html>',
624+
'body' => '<html lang="en"></html>',
625625
'headers' => array(
626626
'Content-Type' => 'text/html',
627627
),

0 commit comments

Comments
 (0)