-
Notifications
You must be signed in to change notification settings - Fork 13
fix(blocks): fix express checkout address validation in modal checkout #597
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
Merged
+794
−5
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
e7f1f71
fix(blocks): fully remove configured-off checkout fields (NPPM-2937)
rbcorrales e0a029d
test(blocks): cover checkout field removal gating (NPPM-2937)
rbcorrales 10b8db6
fix(blocks): scrub invalid wallet address values on store api checkout
rbcorrales bec03d9
test(blocks): remove billing fields filter in tear_down
rbcorrales afb599d
fix(blocks): limit store api scrub to billing on non-shipping carts
rbcorrales c0f3ca4
test(blocks): cover store api scrub and locale relaxation
rbcorrales 00dca75
fix(blocks): scope billing fields enforcement to modal checkout
rbcorrales fb52290
fix(blocks): guard non-string address values in store api scrub
rbcorrales d8a6b36
Merge branch 'release' into hotfix/remove-hidden-checkout-fields
rbcorrales File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
plugins/newspack-blocks/tests/mocks/newspack-plugin-mocks.php
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| <?php // phpcs:disable WordPress.Files.FileName.InvalidClassFileName, Squiz.Commenting.FunctionComment.Missing, Squiz.Commenting.VariableComment.Missing, Squiz.Commenting.FileComment.Missing | ||
|
|
||
| namespace Newspack; | ||
|
|
||
| if ( ! class_exists( WooCommerce_My_Account::class ) ) { | ||
| /** | ||
| * Minimal mock of Newspack\WooCommerce_My_Account (newspack-plugin), used when | ||
| * newspack-plugin is not loaded in the test environment. | ||
| * | ||
| * The $is_from_my_account flag defaults to false so that code paths guarded by | ||
| * method_exists + is_from_my_account() behave the same as when the class is | ||
| * absent. Tests that need a My Account request set the flag and the shared | ||
| * set_up() resets it. | ||
| */ | ||
| class WooCommerce_My_Account { | ||
| public static $is_from_my_account = false; | ||
| public static function is_from_my_account() { | ||
| return self::$is_from_my_account; | ||
| } | ||
| } | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.