Changeset 60253 for trunk/tests/phpunit/tests/l10n.php
- Timestamp:
- 05/26/2025 02:34:12 PM (8 months ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/l10n.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/l10n.php
r58062 r60253 15 15 */ 16 16 private $long_text = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.'; 17 18 /** 19 * Editor user ID. 20 * 21 * @var int $editor_id 22 */ 23 public static $editor_id; 24 25 public static function wpSetUpBeforeClass( WP_UnitTest_Factory $factory ) { 26 self::$editor_id = $factory->user->create( array( 'role' => 'editor' ) ); 27 } 17 28 18 29 /** … … 465 476 * "passing null to non-nullable" deprecation notice. 466 477 */ 467 wp_set_current_user( self:: factory()->user->create( array( 'role' => 'editor' ) ));478 wp_set_current_user( self::$editor_id ); 468 479 469 480 $args = array( … … 504 515 * "passing null to non-nullable" deprecation notice. 505 516 */ 506 wp_set_current_user( self:: factory()->user->create( array( 'role' => 'editor' ) ));517 wp_set_current_user( self::$editor_id ); 507 518 508 519 $args = array( … … 543 554 * "passing null to non-nullable" deprecation notice. 544 555 */ 545 wp_set_current_user( self:: factory()->user->create( array( 'role' => 'editor' ) ));556 wp_set_current_user( self::$editor_id ); 546 557 547 558 $args = array(
Note: See TracChangeset
for help on using the changeset viewer.