- Timestamp:
- 10/17/2015 06:02:16 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/customize/nav-menu-item-setting.php
r35225 r35242 22 22 parent::setUp(); 23 23 require_once ABSPATH . WPINC . '/class-wp-customize-manager.php'; 24 wp_set_current_user( self:: $factory->user->create( array( 'role' => 'administrator' ) ) );24 wp_set_current_user( self::factory()->user->create( array( 'role' => 'administrator' ) ) ); 25 25 26 26 global $wp_customize; … … 150 150 do_action( 'customize_register', $this->wp_customize ); 151 151 152 $post_id = self:: $factory->post->create( array( 'post_title' => 'Hello World' ) );152 $post_id = self::factory()->post->create( array( 'post_title' => 'Hello World' ) ); 153 153 154 154 $menu_id = wp_create_nav_menu( 'Menu' ); … … 193 193 do_action( 'customize_register', $this->wp_customize ); 194 194 195 $tax_id = self:: $factory->category->create( array( 'name' => 'Salutations' ) );195 $tax_id = self::factory()->category->create( array( 'name' => 'Salutations' ) ); 196 196 197 197 $menu_id = wp_create_nav_menu( 'Menu' ); … … 271 271 $this->assertEquals( $post_value, $value ); 272 272 273 $post_id = self:: $factory->post->create( array( 'post_title' => 'Hello World' ) );273 $post_id = self::factory()->post->create( array( 'post_title' => 'Hello World' ) ); 274 274 $item_id = wp_update_nav_menu_item( $menu_id, 0, array( 275 275 'menu-item-type' => 'post_type', … … 297 297 do_action( 'customize_register', $this->wp_customize ); 298 298 299 $first_post_id = self:: $factory->post->create( array( 'post_title' => 'Hello World' ) );300 $second_post_id = self:: $factory->post->create( array( 'post_title' => 'Hola Muno' ) );299 $first_post_id = self::factory()->post->create( array( 'post_title' => 'Hello World' ) ); 300 $second_post_id = self::factory()->post->create( array( 'post_title' => 'Hola Muno' ) ); 301 301 302 302 $primary_menu_id = wp_create_nav_menu( 'Primary' ); … … 349 349 350 350 $menu_id = wp_create_nav_menu( 'Primary' ); 351 $post_id = self:: $factory->post->create( array( 'post_title' => 'Hello World' ) );351 $post_id = self::factory()->post->create( array( 'post_title' => 'Hello World' ) ); 352 352 $item_ids = array(); 353 353 for ( $i = 0; $i < 5; $i += 1 ) { … … 404 404 405 405 $menu_id = wp_create_nav_menu( 'Primary' ); 406 $post_id = self:: $factory->post->create( array( 'post_title' => 'Hello World' ) );406 $post_id = self::factory()->post->create( array( 'post_title' => 'Hello World' ) ); 407 407 $item_ids = array(); 408 408 for ( $i = 0; $i < 5; $i += 1 ) { … … 489 489 do_action( 'customize_register', $this->wp_customize ); 490 490 491 $first_post_id = self:: $factory->post->create( array( 'post_title' => 'Hello World' ) );492 $second_post_id = self:: $factory->post->create( array( 'post_title' => 'Hola Muno' ) );491 $first_post_id = self::factory()->post->create( array( 'post_title' => 'Hello World' ) ); 492 $second_post_id = self::factory()->post->create( array( 'post_title' => 'Hola Muno' ) ); 493 493 494 494 $primary_menu_id = wp_create_nav_menu( 'Primary' ); … … 555 555 556 556 $menu_id = wp_create_nav_menu( 'Primary' ); 557 $post_id = self:: $factory->post->create( array( 'post_title' => 'Hello World' ) );557 $post_id = self::factory()->post->create( array( 'post_title' => 'Hello World' ) ); 558 558 $item_ids = array(); 559 559 for ( $i = 0; $i < 5; $i += 1 ) { … … 624 624 625 625 $menu_id = wp_create_nav_menu( 'Primary' ); 626 $post_id = self:: $factory->post->create( array( 'post_title' => 'Hello World' ) );626 $post_id = self::factory()->post->create( array( 'post_title' => 'Hello World' ) ); 627 627 $item_ids = array(); 628 628 for ( $i = 0; $i < 5; $i += 1 ) {
Note: See TracChangeset
for help on using the changeset viewer.