Skip to content

Create tests for ProductFeedUploads create endpoint#2902

Closed
ajello-meta wants to merge 2 commits intomainfrom
test-product-feed-uploads-create
Closed

Create tests for ProductFeedUploads create endpoint#2902
ajello-meta wants to merge 2 commits intomainfrom
test-product-feed-uploads-create

Conversation

@ajello-meta
Copy link
Copy Markdown
Contributor

Changes proposed in this Pull Request:

This PR introduces unit tests for the Request and Response classes in the WooCommerce\Facebook\API\ProductCatalog\ProductFeedUploads\Create namespace. These tests ensure that the classes behave as expected when handling API requests and responses for creating product feed uploads.

Detailed test instructions:

  1. Run the unit tests using the WordPress testing framework to ensure they pass successfully.
  2. Verify that the Request test checks the HTTP method, path, and data properties.
  3. Verify that the Response test checks the id and data properties for correct parsing.

@facebook-github-bot
Copy link
Copy Markdown
Contributor

@ajello-meta has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Copy Markdown
Contributor

@ajello-meta has updated the pull request. You must reimport the pull request before landing.

@facebook-github-bot
Copy link
Copy Markdown
Contributor

@ajello-meta has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Copy Markdown
Contributor

@ajello-meta merged this pull request in a064a1a.

This was referenced Mar 5, 2025
tzahgr pushed a commit that referenced this pull request Mar 24, 2025
Summary:
### Changes proposed in this Pull Request:

This PR introduces unit tests for the `Request` and `Response` classes in the `WooCommerce\Facebook\API\ProductCatalog\ProductFeedUploads\Create` namespace. These tests ensure that the classes behave as expected when handling API requests and responses for creating product feed uploads.

### Detailed test instructions:
1. Run the unit tests using the WordPress testing framework to ensure they pass successfully.
2. Verify that the `Request` test checks the HTTP method, path, and data properties.
3. Verify that the `Response` test checks the `id` and `data` properties for correct parsing.

Pull Request resolved: #2902

Test Plan:
Imported from GitHub, without a `Test Plan:` line.

**!---- (auto-generated) DO NOT EDIT OR PUT ANYTHING AFTER THIS LINE ----!**
MFTRunTestsScript Run / Test Suite: sa_checkout / Test Collection: bloks / Diff Version V2
https://internalfb.com/intern/testinfra/testrun/12666374022148420
MFTRunTestsScript Run / Test Suite: sa_checkout / Test Collection: www / Diff Version V2
https://internalfb.com/intern/testinfra/testrun/8162774577600955

Reviewed By: carterbuce, nrostrow-meta

Differential Revision: D70210484

Pulled By: ajello-meta

fbshipit-source-id: 0e9a162726a18083aae7c12a2edf568756a69d40
@tzahgr tzahgr mentioned this pull request Mar 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants