Changeset 35186 for trunk/tests/phpunit/tests/post.php
- Timestamp:
- 10/15/2015 04:43:37 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/post.php
r35183 r35186 10 10 protected static $grammarian_id; 11 11 12 public static function setUpBeforeClass() { 13 parent::setUpBeforeClass(); 14 15 $factory = new WP_UnitTest_Factory(); 16 12 public static function wpSetUpBeforeClass( $factory ) { 17 13 self::$editor_id = $factory->user->create( array( 'role' => 'editor' ) ); 18 14 … … 25 21 26 22 self::$grammarian_id = $factory->user->create( array( 'role' => 'grammarian' ) ); 27 28 self::commit_transaction(); 29 } 30 31 public static function tearDownAfterClass() { 32 parent::tearDownAfterClass(); 33 23 } 24 25 public static function wpTearDownAfterClass() { 34 26 $ids = array( self::$editor_id, self::$grammarian_id ); 35 27 foreach ( $ids as $id ) { … … 40 32 } 41 33 } 42 43 self::commit_transaction();44 34 } 45 35
Note: See TracChangeset
for help on using the changeset viewer.