woocommerce/plugins/woocommerce-blocks/tests/e2e/bin/scripts/parallel/reviews.sh

7 lines
445 B
Bash

#!/usr/bin/env bash
# Add a couple of reviews to Hoodie.
post_id=$(wp post list --post_type=product --field=ID --name="Hoodie" --format=ids)
wp wc product_review create $post_id --name="Jane Smith" --email="customer@woocommerceblockse2etestsuite.com" --review="Nice album!" --rating=5 --user=1
wp wc product_review create $post_id --name="Jane Smith" --email="customer@woocommerceblockse2etestsuite.com" --review="Not bad." --rating=4 --user=1