Skip to content
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

[Ramp up] Adding test for Product feed Create API call #2872

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

jczhuoMeta
Copy link

Adding tests to Product Feed Creation to as ramp up task

Test: npm run test:php

$product = WC_Helper_Product::create_simple_product();
$facebook_product = new WC_Facebook_Product( $product );
$product_group_id = 'facebook-product-group-id';
$data = $facebook_product->prepare_product();

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So I know the contents of the data variable here dont actually matter because its not typed and acutally used for anything in this test, but it feels weird to set what reads as product data as the data to create a ProductFeed

@facebook-github-bot
Copy link
Contributor

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

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.

3 participants