Changeset 35242 for trunk/tests/phpunit/tests/post/getBodyClass.php
- Timestamp:
- 10/17/2015 06:02:16 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/post/getBodyClass.php
r35225 r35242 10 10 public function setUp() { 11 11 parent::setUp(); 12 $this->post_id = self:: $factory->post->create();12 $this->post_id = self::factory()->post->create(); 13 13 } 14 14 … … 17 17 */ 18 18 public function test_with_utf8_category_slugs() { 19 $cat_id1 = self:: $factory->category->create( array( 'name' => 'Первая рубрика' ) );20 $cat_id2 = self:: $factory->category->create( array( 'name' => 'Вторая рубрика' ) );21 $cat_id3 = self:: $factory->category->create( array( 'name' => '25кадр' ) );19 $cat_id1 = self::factory()->category->create( array( 'name' => 'Первая рубрика' ) ); 20 $cat_id2 = self::factory()->category->create( array( 'name' => 'Вторая рубрика' ) ); 21 $cat_id3 = self::factory()->category->create( array( 'name' => '25кадр' ) ); 22 22 wp_set_post_terms( $this->post_id, array( $cat_id1, $cat_id2, $cat_id3 ), 'category' ); 23 23 … … 36 36 */ 37 37 public function test_with_utf8_tag_slugs() { 38 $tag_id1 = self:: $factory->tag->create( array( 'name' => 'Первая метка' ) );39 $tag_id2 = self:: $factory->tag->create( array( 'name' => 'Вторая метка' ) );40 $tag_id3 = self:: $factory->tag->create( array( 'name' => '25кадр' ) );38 $tag_id1 = self::factory()->tag->create( array( 'name' => 'Первая метка' ) ); 39 $tag_id2 = self::factory()->tag->create( array( 'name' => 'Вторая метка' ) ); 40 $tag_id3 = self::factory()->tag->create( array( 'name' => '25кадр' ) ); 41 41 wp_set_post_terms( $this->post_id, array( $tag_id1, $tag_id2, $tag_id3 ), 'post_tag' ); 42 42 … … 60 60 public function test_with_utf8_term_slugs() { 61 61 register_taxonomy( 'wptests_tax', 'post' ); 62 $term_id1 = self:: $factory->term->create( array( 'taxonomy' => 'wptests_tax', 'name' => 'Первая метка' ) );63 $term_id2 = self:: $factory->term->create( array( 'taxonomy' => 'wptests_tax', 'name' => 'Вторая метка' ) );64 $term_id3 = self:: $factory->term->create( array( 'taxonomy' => 'wptests_tax', 'name' => '25кадр' ) );62 $term_id1 = self::factory()->term->create( array( 'taxonomy' => 'wptests_tax', 'name' => 'Первая метка' ) ); 63 $term_id2 = self::factory()->term->create( array( 'taxonomy' => 'wptests_tax', 'name' => 'Вторая метка' ) ); 64 $term_id3 = self::factory()->term->create( array( 'taxonomy' => 'wptests_tax', 'name' => '25кадр' ) ); 65 65 wp_set_post_terms( $this->post_id, array( $term_id1, $term_id2, $term_id3 ), 'wptests_tax' ); 66 66
Note: See TracChangeset
for help on using the changeset viewer.