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

fix: Cart_Mutation:prepare_attributes made public #796

Merged
merged 2 commits into from
Sep 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ ENV PATH "$PATH:~/.composer/vendor/bin"
# Install wp-browser globally
RUN composer global require --optimize-autoloader \
wp-cli/wp-cli-bundle:* \
lucatume/wp-browser \
lucatume/wp-browser:^3.1 \
codeception/module-asserts:* \
codeception/module-cli:* \
codeception/module-db:* \
Expand Down
2 changes: 0 additions & 2 deletions bin/_lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ install_local_test_library() {
composer install
composer require --dev \
lucatume/wp-browser:^3.1 \
codeception/codeception:^4.2 \
symfony/finder:* \
codeception/lib-asserts:^1.0 \
codeception/module-asserts:^1.3.1 \
Expand Down Expand Up @@ -97,7 +96,6 @@ remove_local_test_library() {
# Remove testing library dependencies.
composer remove --dev wp-graphql/wp-graphql-testcase \
codeception/module-asserts \
codeception/codeception \
codeception/lib-asserts \
symfony/finder \
codeception/module-rest \
Expand Down
14 changes: 7 additions & 7 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion includes/data/mutation/class-cart-mutation.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public static function prepare_cart_item( $input, $context, $info ) {
*
* @throws \GraphQL\Error\UserError Invalid cart attribute provided.
*/
private static function prepare_attributes( $product_id, array $variation_data = [] ) {
public static function prepare_attributes( $product_id, array $variation_data = [] ) {
$product = wc_get_product( $product_id );

// Bail if bad product ID.
Expand Down
Loading