-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix: Get Unit tests passing for 2.4.1 #1029
Conversation
…exists In 6.4, WpOrg\Requests\Utility\CaseInsensitiveDictionary was introduced and using Requests_Utility_CaseInsensitiveDictionary will throw an exception
@@ -263,7 +263,9 @@ protected function add_http_response( | |||
'body' => $body, | |||
'cookies' => $cookies, | |||
'filename' => $filename, | |||
'headers' => new Requests_Utility_CaseInsensitiveDictionary( $headers ), | |||
'headers' => class_exists( \WpOrg\Requests\Utility\CaseInsensitiveDictionary::class ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change for WordPress 6.4 (I believe)
@@ -8,9 +8,6 @@ | |||
|
|||
/* phpcs:disable WordPressVIPMinimum.Files.IncludingFile.UsingVariable */ | |||
|
|||
const WP_TESTS_PHPUNIT_POLYFILLS_PATH = __DIR__ . '/../vendor/yoast/phpunit-polyfills'; // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedConstantFound | |||
|
|||
const WP_TESTS_MULTISITE = 1; // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedConstantFound |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved to the workflow matrix
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You sir, are a 🎩 and a 👨🏼🎓
Get tests passing on Apple News with TestKit.
Fixes #1027