From ef5b1cbeb07ac979d5aeedb203398a023d82daa5 Mon Sep 17 00:00:00 2001 From: JoryHogeveen Date: Fri, 22 Nov 2024 00:29:33 +0100 Subject: [PATCH] Should be protected like parent --- tests/test-controller.php | 2 +- tests/unittestcase.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test-controller.php b/tests/test-controller.php index 2a8b99ae..1dd69bdd 100644 --- a/tests/test-controller.php +++ b/tests/test-controller.php @@ -16,7 +16,7 @@ public static function get_instance() { return view_admin_as()->controller(); } - public function setUp() { + protected function setUp() { parent::setUp(); add_action( 'vaa_view_admin_as_update_view', array( 'VAA_Controller_UnitTest', 'action_callback' ) ); add_action( 'vaa_view_admin_as_reset_view', array( 'VAA_Controller_UnitTest', 'action_callback' ) ); diff --git a/tests/unittestcase.php b/tests/unittestcase.php index 8501d8f1..bc6b9c41 100644 --- a/tests/unittestcase.php +++ b/tests/unittestcase.php @@ -8,7 +8,7 @@ class VAA_UnitTestCase extends WP_UnitTestCase { - public function setUp() { + protected function setUp() { parent::setUp(); wp_set_current_user( 1 ); VAA_UnitTest_Factory::vaa_reinit();