-
Notifications
You must be signed in to change notification settings - Fork 113
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
MetaDataStore
unit tests
#14002
MetaDataStore
unit tests
#14002
Conversation
- Add new file `Yosemite/YosemiteTests/Stores/MetaDataStoreTests.swift` with unit tests for MetaDataStore. - Update `Yosemite/Yosemite.xcodeproj/project.pbxproj` to include `MetaDataStoreTests.swift` and `MockMetaDataRemote.swift`.
- Add `newMetadataArray` to `MetaDataStoreTests.swift` - Update `returnMetaDataArray` for consistency in test cases - Remove redundant metadata array declarations in tests
…ateOrderMetaData` method. - Replace `newMetadataArray` with `self.newMetadataArray` in the `updateProductMetaData` method.
📲 You can test the changes from this Pull Request in WooCommerce iOS by scanning the QR code below to install the corresponding build.
|
Version |
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.
As this is just unit tests, I just read the code and ensure they pass. LGTM.
Closes: #13901
Description
This set of changes follows the changes introduced in this PR #13929 handling the test of
MetaDataStore
unit tests, and introduces a new mock class forMetaDataRemote
.Steps to reproduce
MetaDataStoreTests.swift
run successfully.Testing information
Just CI should be ✅
RELEASE-NOTES.txt
if necessary.Reviewer (or Author, in the case of optional code reviews):
Please make sure these conditions are met before approving the PR, or request changes if the PR needs improvement: