WordPress.org

Make WordPress Core

Changeset 1219 in tests


Ignore:
Timestamp:
02/18/2013 11:53:15 PM (5 years ago)
Author:
nbachiyski
Message:

Test case for #23506

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/term/getTerms.php

    r1209 r1219  
    7979        // @todo Repeat with term insert and update.
    8080    }
     81
     82    /**
     83     * @ticket 23506
     84     */
     85    function test_get_terms_should_allow_arbitrary_indexed_taxonomies_array() {
     86        $term_id = $this->factory->tag->create();
     87        $terms = get_terms( array( '111' => 'post_tag' ), array( 'hide_empty' => false ) );
     88        $this->assertEquals( $term_id, $terms[0]->term_id );
     89    }
    8190}
Note: See TracChangeset for help on using the changeset viewer.