- Timestamp:
- 08/17/2018 01:50:26 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/category/getTheCategoryById.php
r42367 r43571 7 7 class Tests_Category_GetTheCategoryById extends WP_UnitTestCase { 8 8 public function test_success() { 9 $c = self::factory()->category->create( array( 10 'name' => 'Foo', 11 ) ); 9 $c = self::factory()->category->create( 10 array( 11 'name' => 'Foo', 12 ) 13 ); 12 14 13 15 $found = get_the_category_by_ID( $c ); … … 22 24 register_taxonomy( 'wptests_tax', 'post' ); 23 25 24 $t = self::factory()->term->create( array( 25 'taxonomy' => 'wptests_tax', 26 'name' => 'Foo', 27 ) ); 26 $t = self::factory()->term->create( 27 array( 28 'taxonomy' => 'wptests_tax', 29 'name' => 'Foo', 30 ) 31 ); 28 32 29 33 $term = get_term( $t ); … … 40 44 register_taxonomy( 'wptests_tax', 'post' ); 41 45 42 $t = self::factory()->term->create( array( 43 'taxonomy' => 'wptests_tax', 44 'name' => 'Foo', 45 ) ); 46 $t = self::factory()->term->create( 47 array( 48 'taxonomy' => 'wptests_tax', 49 'name' => 'Foo', 50 ) 51 ); 46 52 47 53 clean_term_cache( $t );
Note: See TracChangeset
for help on using the changeset viewer.