Changeset 35242 for trunk/tests/phpunit/tests/post/getPostClass.php
- Timestamp:
- 10/17/2015 06:02:16 PM (11 years ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/post/getPostClass.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/post/getPostClass.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 … … 23 23 24 24 public function test_with_categories() { 25 $cats = self:: $factory->category->create_many( 2 );25 $cats = self::factory()->category->create_many( 2 ); 26 26 wp_set_post_terms( $this->post_id, $cats, 'category' ); 27 27 … … 58 58 */ 59 59 public function test_with_utf8_category_slugs() { 60 $cat_id1 = self:: $factory->category->create( array( 'name' => 'Первая рубрика' ) );61 $cat_id2 = self:: $factory->category->create( array( 'name' => 'Вторая рубрика' ) );62 $cat_id3 = self:: $factory->category->create( array( 'name' => '25кадр' ) );60 $cat_id1 = self::factory()->category->create( array( 'name' => 'Первая рубрика' ) ); 61 $cat_id2 = self::factory()->category->create( array( 'name' => 'Вторая рубрика' ) ); 62 $cat_id3 = self::factory()->category->create( array( 'name' => '25кадр' ) ); 63 63 wp_set_post_terms( $this->post_id, array( $cat_id1, $cat_id2, $cat_id3 ), 'category' ); 64 64 … … 74 74 */ 75 75 public function test_with_utf8_tag_slugs() { 76 $tag_id1 = self:: $factory->tag->create( array( 'name' => 'Первая метка' ) );77 $tag_id2 = self:: $factory->tag->create( array( 'name' => 'Вторая метка' ) );78 $tag_id3 = self:: $factory->tag->create( array( 'name' => '25кадр' ) );76 $tag_id1 = self::factory()->tag->create( array( 'name' => 'Первая метка' ) ); 77 $tag_id2 = self::factory()->tag->create( array( 'name' => 'Вторая метка' ) ); 78 $tag_id3 = self::factory()->tag->create( array( 'name' => '25кадр' ) ); 79 79 wp_set_post_terms( $this->post_id, array( $tag_id1, $tag_id2, $tag_id3 ), 'post_tag' ); 80 80 … … 91 91 public function test_with_utf8_term_slugs() { 92 92 register_taxonomy( 'wptests_tax', 'post' ); 93 $term_id1 = self:: $factory->term->create( array( 'taxonomy' => 'wptests_tax', 'name' => 'Первая метка' ) );94 $term_id2 = self:: $factory->term->create( array( 'taxonomy' => 'wptests_tax', 'name' => 'Вторая метка' ) );95 $term_id3 = self:: $factory->term->create( array( 'taxonomy' => 'wptests_tax', 'name' => '25кадр' ) );93 $term_id1 = self::factory()->term->create( array( 'taxonomy' => 'wptests_tax', 'name' => 'Первая метка' ) ); 94 $term_id2 = self::factory()->term->create( array( 'taxonomy' => 'wptests_tax', 'name' => 'Вторая метка' ) ); 95 $term_id3 = self::factory()->term->create( array( 'taxonomy' => 'wptests_tax', 'name' => '25кадр' ) ); 96 96 wp_set_post_terms( $this->post_id, array( $term_id1, $term_id2, $term_id3 ), 'wptests_tax' ); 97 97
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)