From 18a323e5d96ebdd7079c2d32b4fdd6a427769c17 Mon Sep 17 00:00:00 2001 From: Nilambar Sharma Date: Mon, 25 Dec 2023 14:52:44 +0545 Subject: [PATCH] Update tests for enqueued resources check --- .../load.php | 5 ----- .../load.php | 14 ++++++++++++++ .../Checks/Enqueued_Resources_Check_Tests.php | 2 +- 3 files changed, 15 insertions(+), 6 deletions(-) diff --git a/tests/phpunit/testdata/plugins/test-plugin-enqueued-resources-with-errors/load.php b/tests/phpunit/testdata/plugins/test-plugin-enqueued-resources-with-errors/load.php index d6c30273e..51dda69b9 100644 --- a/tests/phpunit/testdata/plugins/test-plugin-enqueued-resources-with-errors/load.php +++ b/tests/phpunit/testdata/plugins/test-plugin-enqueued-resources-with-errors/load.php @@ -18,8 +18,3 @@ ?> - -assertNotEmpty( $errors ); $this->assertArrayHasKey( 'load.php', $errors ); - $this->assertEquals( 4, $check_result->get_error_count() ); + $this->assertEquals( 2, $check_result->get_error_count() ); } public function test_run_without_errors() {