Skip to content

Commit

Permalink
Make sure user has activitypub cap
Browse files Browse the repository at this point in the history
  • Loading branch information
obenland committed Jan 21, 2025
1 parent 4a32192 commit 9433ce8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/includes/scheduler/class-test-comment.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ class Test_Comment extends \WP_UnitTestCase {
public static function wpSetUpBeforeClass( $factory ) {
self::$user_id = $factory->user->create( array( 'role' => 'author' ) );
self::$post_id = $factory->post->create( array( 'post_author' => self::$user_id ) );

// Add activitypub capability to the user.
get_user_by( 'id', self::$user_id )->add_cap( 'activitypub' );
}

/**
Expand Down

0 comments on commit 9433ce8

Please sign in to comment.