diff --git a/tests/modules/js-and-css/audit-enqueued-assets/audit-enqueued-assets-helper-test.php b/tests/modules/js-and-css/audit-enqueued-assets/audit-enqueued-assets-helper-test.php index d81f38d671..7d9f45635e 100644 --- a/tests/modules/js-and-css/audit-enqueued-assets/audit-enqueued-assets-helper-test.php +++ b/tests/modules/js-and-css/audit-enqueued-assets/audit-enqueued-assets-helper-test.php @@ -101,7 +101,7 @@ public function test_perflab_aea_get_path_from_resource_url_outside_wp_setup() { $expected_path = WP_CONTENT_DIR . '/themes/test-theme/style.css'; add_filter( 'content_url', - static function ( $url ) { + static function () { return site_url() . '/content'; } );