Changeset 42343 for trunk/tests/phpunit/tests/post/getPostClass.php
- Timestamp:
- 11/30/2017 11:09:33 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/post/getPostClass.php
r35299 r42343 51 51 $this->assertEquals( array(), get_post_class( '', null ) ); 52 52 $this->assertEquals( array( 'foo' ), get_post_class( 'foo', null ) ); 53 $this->assertEquals( array( 'foo', 'bar' ), 53 $this->assertEquals( array( 'foo', 'bar' ), get_post_class( array( 'foo', 'bar' ), null ) ); 54 54 } 55 55 … … 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( 94 array( 95 'taxonomy' => 'wptests_tax', 96 'name' => 'Первая метка', 97 ) 98 ); 99 $term_id2 = self::factory()->term->create( 100 array( 101 'taxonomy' => 'wptests_tax', 102 'name' => 'Вторая метка', 103 ) 104 ); 105 $term_id3 = self::factory()->term->create( 106 array( 107 'taxonomy' => 'wptests_tax', 108 'name' => '25кадр', 109 ) 110 ); 96 111 wp_set_post_terms( $this->post_id, array( $term_id1, $term_id2, $term_id3 ), 'wptests_tax' ); 97 112
Note: See TracChangeset
for help on using the changeset viewer.