Skip to content

Commit 3fc2c01

Browse files
committed
Add test for empty stylesheet argument
1 parent a379f4c commit 3fc2c01

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests/phpunit/tests/theme/wpTheme.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,17 @@ public function test_get_files_nonexistent_theme() {
375375
$this->assertEmpty( $files );
376376
}
377377

378+
/**
379+
* Test wp_customize_url with no $stylesheet argument.
380+
*
381+
* @ticket 63632
382+
*
383+
* @covers ::wp_customize_url
384+
*/
385+
public function test_wp_customize_url_no_stylesheet() {
386+
$this->assertSame( esc_url( admin_url( 'customize.php' ) ), wp_customize_url() );
387+
}
388+
378389
/**
379390
* Test wp_customize_url with no query args.
380391
*

0 commit comments

Comments
 (0)