Changeset 33804 for trunk/tests/phpunit/tests/category/wpListCategories.php
- Timestamp:
- 08/29/2015 07:45:35 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/category/wpListCategories.php
r33767 r33804 47 47 48 48 /** 49 * @ticket 33565 50 */ 51 public function test_current_category_should_accept_an_array_of_ids() { 52 $cats = $this->factory->category->create_many( 3 ); 53 54 $found = wp_list_categories( array( 55 'echo' => false, 56 'hide_empty' => false, 57 'current_category' => array( $cats[0], $cats[2] ), 58 ) ); 59 60 $this->assertRegExp( '/class="[^"]*cat-item-' . $cats[0] . '[^"]*current-cat[^"]*"/', $found ); 61 $this->assertNotRegExp( '/class="[^"]*cat-item-' . $cats[1] . '[^"]*current[^"]*"/', $found ); 62 $this->assertRegExp( '/class="[^"]*cat-item-' . $cats[2] . '[^"]*current-cat[^"]*"/', $found ); 63 } 64 65 /** 49 66 * @ticket 16792 50 67 */
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)