Skip to content

Commit

Permalink
Should be protected like parent
Browse files Browse the repository at this point in the history
  • Loading branch information
JoryHogeveen committed Nov 21, 2024
1 parent 1b9baa9 commit ef5b1cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/test-controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' ) );
Expand Down
2 changes: 1 addition & 1 deletion tests/unittestcase.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit ef5b1cb

Please sign in to comment.