Make WordPress Core


Ignore:
Timestamp:
05/15/2014 01:11:21 AM (10 years ago)
Author:
wonderboymusic
Message:

Eliminate use of extract() in wp_dropdown_pages().

Adds unit tests to: tests/post/template.php.
There was previously only one wimpy assertion for wp_dropdown_pages().

See #22400.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/post/getPages.php

    r27767 r28399  
    165165     */
    166166    function test_wp_dropdown_pages() {
    167         $posts = $this->factory->post->create_many( 5, array( 'post_type' => 'page' ) );
     167        $this->factory->post->create_many( 5, array( 'post_type' => 'page' ) );
    168168
    169169        preg_match_all( '#<option#', wp_dropdown_pages( 'echo=0' ), $matches );
Note: See TracChangeset for help on using the changeset viewer.