From 20d984f4c938bd194765fea808471b40e9345468 Mon Sep 17 00:00:00 2001 From: Aaron Jorbin Date: Sun, 3 Nov 2019 22:47:52 +0000 Subject: [PATCH] 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 --- tests/phpunit/tests/pluggable.php | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/tests/phpunit/tests/pluggable.php b/tests/phpunit/tests/pluggable.php index 663da4bd3f..26a15c0bbc 100644 --- a/tests/phpunit/tests/pluggable.php +++ b/tests/phpunit/tests/pluggable.php @@ -5,29 +5,6 @@ */ 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 * @dataProvider get_bad_status_codes