- Timestamp:
- 09/06/2022 10:03:10 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/widgets/wpWidgetCustomHtml.php
r52248 r54088 173 173 174 174 wp_set_current_user( 175 $this->factory()->user->create(175 self::factory()->user->create( 176 176 array( 177 177 'role' => 'administrator', … … 242 242 */ 243 243 public function test_enqueue_admin_scripts_when_logged_in_and_syntax_highlighting_on() { 244 $user = $this->factory()->user->create();244 $user = self::factory()->user->create(); 245 245 wp_set_current_user( $user ); 246 246 wp_get_current_user()->syntax_highlighting = 'true'; … … 263 263 */ 264 264 public function test_enqueue_admin_scripts_when_logged_in_and_syntax_highlighting_off() { 265 $user = $this->factory()->user->create();265 $user = self::factory()->user->create(); 266 266 wp_set_current_user( $user ); 267 267 update_user_meta( $user, 'syntax_highlighting', 'false' );
Note: See TracChangeset
for help on using the changeset viewer.