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.


git-svn-id: https://develop.svn.wordpress.org/trunk@28399 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Scott Taylor
2014-05-15 01:11:21 +00:00
parent 21e0370e5c
commit e4a800238f
3 changed files with 80 additions and 19 deletions
+1 -1
View File
@@ -164,7 +164,7 @@ class Tests_Post_getPages extends WP_UnitTestCase {
* @ticket 22389
*/
function test_wp_dropdown_pages() {
$posts = $this->factory->post->create_many( 5, array( 'post_type' => 'page' ) );
$this->factory->post->create_many( 5, array( 'post_type' => 'page' ) );
preg_match_all( '#<option#', wp_dropdown_pages( 'echo=0' ), $matches );