- Timestamp:
- 09/06/2022 10:03:10 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/rest-api/wpRestBlockPatternCategoriesController.php
r54058 r54088 137 137 public function test_get_items_forbidden() { 138 138 // Set current user without `edit_posts` capability. 139 wp_set_current_user( $this->factory()->user->create( array( 'role' => 'subscriber' ) ) );139 wp_set_current_user( self::factory()->user->create( array( 'role' => 'subscriber' ) ) ); 140 140 141 141 $request = new WP_REST_Request( 'GET', static::REQUEST_ROUTE );
Note: See TracChangeset
for help on using the changeset viewer.