Changeset 49696 for trunk/tests/phpunit/tests/ajax/CustomizeMenus.php
- Timestamp:
- 11/25/2020 04:09:41 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/ajax/CustomizeMenus.php
r48997 r49696 18 18 19 19 /** 20 * Page IDs. 21 * 22 * @var int[] 23 */ 24 public static $pages; 25 26 /** 27 * Post IDs. 28 * 29 * @var int[] 30 */ 31 public static $posts; 32 33 /** 34 * Term IDs. 35 * 36 * @var int[] 37 */ 38 public static $terms; 39 40 public static function wpSetUpBeforeClass( WP_UnitTest_Factory $factory ) { 41 // Make some post objects. 42 self::$posts = $factory->post->create_many( 5 ); 43 self::$pages = $factory->post->create_many( 5, array( 'post_type' => 'page' ) ); 44 45 // Some terms too. 46 self::$terms = $factory->term->create_many( 5 ); 47 } 48 49 /** 20 50 * Set up the test fixture. 21 51 */ … … 342 372 ); 343 373 344 // Create some terms and pages.345 self::factory()->term->create_many( 5 );346 self::factory()->post->create_many( 5, array( 'post_type' => 'page' ) );347 374 $auto_draft_post = $this->wp_customize->nav_menus->insert_auto_draft_post( 348 375 array(
Note: See TracChangeset
for help on using the changeset viewer.