diff --git a/tests/test-controller.php b/tests/test-controller.php index 1dd69bdd..297622fd 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(); } - protected function setUp() { + protected function setUp(): void { 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 bc6b9c41..5d4aa45a 100644 --- a/tests/unittestcase.php +++ b/tests/unittestcase.php @@ -8,7 +8,7 @@ class VAA_UnitTestCase extends WP_UnitTestCase { - protected function setUp() { + protected function setUp(): void { parent::setUp(); wp_set_current_user( 1 ); VAA_UnitTest_Factory::vaa_reinit();