Changeset 35186 for trunk/tests/phpunit/tests/media.php
- Timestamp:
- 10/15/2015 04:43:37 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/media.php
r35181 r35186 8 8 protected static $large_id; 9 9 10 public static function setUpBeforeClass() { 11 parent::setUpBeforeClass(); 12 13 $factory = new WP_UnitTest_Factory(); 14 10 public static function wpSetUpBeforeClass( $factory ) { 15 11 $filename = DIR_TESTDATA . '/images/test-image-large.png'; 16 12 self::$large_id = $factory->attachment->create_upload_object( $filename ); 17 18 self::commit_transaction(); 19 } 20 21 public static function tearDownAfterClass() { 22 parent::tearDownAfterClass(); 23 13 } 14 15 public static function wpTearDownAfterClass() { 24 16 wp_delete_attachment( self::$large_id ); 25 26 self::commit_transaction();27 17 } 28 18
Note: See TracChangeset
for help on using the changeset viewer.