- Timestamp:
- 02/29/2016 08:30:04 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/category/getCategoryParents.php
r35242 r36778 51 51 } 52 52 53 public function test_visited () {53 public function test_visited_should_also_exclude_children_of_visited_categories() { 54 54 $c3 = self::factory()->category->create_and_get( array( 55 55 'parent' => $this->c2->term_id, … … 59 59 ) ); 60 60 61 $expected = $this->c1->name . '/'. $this->c2->name . '/' . $c4->name . '/';61 $expected = $this->c1->name . '/'. $this->c2->name . '/'; 62 62 $found = get_category_parents( $this->c2->term_id, false, '/', false, array( $c3->term_id ) ); 63 $this->assertSame( $expected, $found ); 63 64 } 64 65 }
Note: See TracChangeset
for help on using the changeset viewer.