Changeset 35225 for trunk/tests/phpunit/tests/term/wpUniqueTermSlug.php
- Timestamp:
- 10/16/2015 09:04:12 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/term/wpUniqueTermSlug.php
r32507 r35225 12 12 13 13 public function test_unique_slug_should_be_unchanged() { 14 $term = $this->factory->term->create_and_get( array(14 $term = self::$factory->term->create_and_get( array( 15 15 'taxonomy' => 'wptests_tax1', 16 16 'name' => 'foo', … … 23 23 24 24 public function test_nonunique_slug_in_different_taxonomy_should_be_unchanged() { 25 $term1 = $this->factory->term->create( array(25 $term1 = self::$factory->term->create( array( 26 26 'taxonomy' => 'wptests_tax2', 27 27 'name' => 'bar', … … 29 29 ) ); 30 30 31 $term2 = $this->factory->term->create( array(31 $term2 = self::$factory->term->create( array( 32 32 'taxonomy' => 'wptests_tax1', 33 33 'name' => 'foo', … … 41 41 42 42 public function test_nonunique_slug_in_same_nonhierarchical_taxonomy_should_be_changed() { 43 $term1 = $this->factory->term->create( array(43 $term1 = self::$factory->term->create( array( 44 44 'taxonomy' => 'wptests_tax1', 45 45 'name' => 'bar', … … 47 47 ) ); 48 48 49 $term2 = $this->factory->term->create( array(49 $term2 = self::$factory->term->create( array( 50 50 'taxonomy' => 'wptests_tax1', 51 51 'name' => 'foo', … … 59 59 60 60 public function test_nonunique_slug_in_same_hierarchical_taxonomy_with_same_parent_should_be_suffixed_with_parent_slug() { 61 $parent = $this->factory->term->create( array(61 $parent = self::$factory->term->create( array( 62 62 'taxonomy' => 'wptests_tax2', 63 63 'slug' => 'parent-term', 64 64 ) ); 65 65 66 $term1 = $this->factory->term->create( array(66 $term1 = self::$factory->term->create( array( 67 67 'taxonomy' => 'wptests_tax2', 68 68 'name' => 'bar', … … 71 71 ) ); 72 72 73 $term2 = $this->factory->term->create( array(73 $term2 = self::$factory->term->create( array( 74 74 'taxonomy' => 'wptests_tax2', 75 75 'name' => 'foo', … … 84 84 85 85 public function test_nonunique_slug_in_same_hierarchical_taxonomy_at_different_level_of_hierarchy_should_be_suffixed_with_number() { 86 $parent = $this->factory->term->create( array(86 $parent = self::$factory->term->create( array( 87 87 'taxonomy' => 'wptests_tax2', 88 88 'slug' => 'parent-term', 89 89 ) ); 90 90 91 $term1 = $this->factory->term->create( array(91 $term1 = self::$factory->term->create( array( 92 92 'taxonomy' => 'wptests_tax2', 93 93 'name' => 'bar', … … 96 96 ) ); 97 97 98 $term2 = $this->factory->term->create( array(98 $term2 = self::$factory->term->create( array( 99 99 'taxonomy' => 'wptests_tax2', 100 100 'name' => 'foo',
Note: See TracChangeset
for help on using the changeset viewer.