Remove Failing Tests added in r46641
The tests for good redirects send headers that we can't handle in the test suite, so let's just remove them. Unprops Jorbin. Fixes #44317. git-svn-id: https://develop.svn.wordpress.org/trunk@46645 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
27b67d5624
commit
20d984f4c9
@ -5,29 +5,6 @@
|
|||||||
*/
|
*/
|
||||||
class Tests_Pluggable extends WP_UnitTestCase {
|
class Tests_Pluggable extends WP_UnitTestCase {
|
||||||
|
|
||||||
/**
|
|
||||||
* @dataProvider get_good_status_codes
|
|
||||||
*
|
|
||||||
* @ticket 44317
|
|
||||||
* @param string $location The path or URL to redirect to.
|
|
||||||
* @param int $status HTTP response status code to use.
|
|
||||||
*/
|
|
||||||
public function test_wp_redirect_good_status_code( $location, $status ) {
|
|
||||||
$this->assertTrue( wp_redirect( $location, $status ) );
|
|
||||||
}
|
|
||||||
|
|
||||||
public function get_good_status_codes() {
|
|
||||||
return [
|
|
||||||
// Expected Statuses
|
|
||||||
[ '/wp-admin', 301 ],
|
|
||||||
[ '/wp-admin', 302 ],
|
|
||||||
[ '/wp-admin', 307 ],
|
|
||||||
// Outliers that are valid
|
|
||||||
[ '/wp-admin', 300 ],
|
|
||||||
[ '/wp-admin', 399 ],
|
|
||||||
];
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @expectedException WPDieException
|
* @expectedException WPDieException
|
||||||
* @dataProvider get_bad_status_codes
|
* @dataProvider get_bad_status_codes
|
||||||
|
Loading…
Reference in New Issue
Block a user