mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
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:
@@ -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 );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user