Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
obenland committed Feb 4, 2025
1 parent 18640da commit 926e462
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions tests/includes/rest/class-test-actors-controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,6 @@ class Test_Actors_Controller extends \Activitypub\Tests\Test_REST_Controller_Tes
*/
protected static $user_id;

/**
* Actors Controller instance.
*
* @var Actors_Controller
*/
protected $controller;

/**
* Original server global.
*
Expand All @@ -40,10 +33,10 @@ class Test_Actors_Controller extends \Activitypub\Tests\Test_REST_Controller_Tes
* Create fake data before our tests run.
*/
public static function set_up_before_class() {
parent::set_up_before_class();

self::$user_id = self::factory()->user->create( array( 'role' => 'author' ) );
\get_user_by( 'id', self::$user_id )->add_cap( 'activitypub' );

parent::set_up_before_class();
}

/**
Expand Down

0 comments on commit 926e462

Please sign in to comment.