Changeset 49003 for trunk/tests/phpunit/tests/term/slashes.php
- Timestamp:
- 09/19/2020 10:34:54 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/term/slashes.php
r48937 r49003 7 7 */ 8 8 class Tests_Term_Slashes extends WP_Ajax_UnitTestCase { 9 protected static $author_id; 10 11 public static function wpSetUpBeforeClass( $factory ) { 12 self::$author_id = $factory->user->create( array( 'role' => 'administrator' ) ); 13 } 14 9 15 function setUp() { 10 16 parent::setUp(); 11 $this->author_id = self::factory()->user->create( array( 'role' => 'administrator' ) );12 17 13 wp_set_current_user( $this->author_id );18 wp_set_current_user( self::$author_id ); 14 19 15 20 $this->slash_1 = 'String with 1 slash \\';
Note: See TracChangeset
for help on using the changeset viewer.