Ticket #23423: 23423-test.patch
File 23423-test.patch, 623 bytes (added by , 9 years ago) |
---|
-
tests/phpunit/tests/widgets.php
293 293 $this->assertArrayNotHasKey( 2, $option_value ); 294 294 } 295 295 296 /** 297 * @ticket 23423 298 */ 299 function test_dynamic_sidebar_id_special_characters() { 300 wp_widgets_init(); 301 register_sidebar( array( 302 'name' => 'Sidebar 2', 303 'id' => 'sidebar-2', 304 ) ); 305 306 ob_start(); 307 $result = dynamic_sidebar( 'Sidebar 1' ); 308 ob_end_clean(); 309 310 $this->assertFalse( $result ); 311 } 312 296 313 }