From 0284a2274f8d8474fcc8407f865073034150111f Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Fri, 30 Dec 2022 03:29:11 +0000 Subject: [PATCH] Coding Standards: Add visibility to `Tests_Dependencies::test_enqueue_before_register()`. Adds a `public` visibility to a test where it was not explicitly specified. This continues the previous efforts to make sure visibility is declared on all methods. Note: This will be enforced by WPCS 3.0.0. Follow-up to [51919], [52009], [52010], [52338], [54889]. Props jrf. See #56791. git-svn-id: https://develop.svn.wordpress.org/trunk@55022 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/dependencies.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/phpunit/tests/dependencies.php b/tests/phpunit/tests/dependencies.php index cdd8e8b529..e5a7a33a7c 100644 --- a/tests/phpunit/tests/dependencies.php +++ b/tests/phpunit/tests/dependencies.php @@ -137,7 +137,7 @@ class Tests_Dependencies extends WP_UnitTestCase { } - function test_enqueue_before_register() { + public function test_enqueue_before_register() { $dep = new WP_Dependencies(); $this->assertArrayNotHasKey( 'one', $dep->registered );