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