Ticket #35013: 35013-unit-tests.patch
File 35013-unit-tests.patch, 594 bytes (added by , 9 years ago) |
---|
-
tests/phpunit/tests/query.php
492 492 493 493 $this->assertContains( 'LIMIT 5, 5', $q->request ); 494 494 } 495 496 /** 497 * @ticket 35013 498 */ 499 public function test_clone_fatal_error_on_admin_404() { 500 global $wp_query, $wp; 501 502 // Some awesome hacking on the query 503 $wp_query->is_singular = true; 504 set_current_screen( 'edit.php' ); 505 506 // This should not trigger a Fatal Error 507 $wp->handle_404(); 508 509 } 495 510 }