Skip to content

Commit 277cef0

Browse files
authored
fix: Cart_Mutation:prepare_attributes made public (#796)
* fix: Cart_Mutation:prepare_attributes made public * devops: Dockerfile updated.
1 parent 993f8aa commit 277cef0

File tree

4 files changed

+9
-11
lines changed

4 files changed

+9
-11
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ ENV PATH "$PATH:~/.composer/vendor/bin"
3838
# Install wp-browser globally
3939
RUN composer global require --optimize-autoloader \
4040
wp-cli/wp-cli-bundle:* \
41-
lucatume/wp-browser \
41+
lucatume/wp-browser:^3.1 \
4242
codeception/module-asserts:* \
4343
codeception/module-cli:* \
4444
codeception/module-db:* \

bin/_lib.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ install_local_test_library() {
6464
composer install
6565
composer require --dev \
6666
lucatume/wp-browser:^3.1 \
67-
codeception/codeception:^4.2 \
6867
symfony/finder:* \
6968
codeception/lib-asserts:^1.0 \
7069
codeception/module-asserts:^1.3.1 \
@@ -97,7 +96,6 @@ remove_local_test_library() {
9796
# Remove testing library dependencies.
9897
composer remove --dev wp-graphql/wp-graphql-testcase \
9998
codeception/module-asserts \
100-
codeception/codeception \
10199
codeception/lib-asserts \
102100
symfony/finder \
103101
codeception/module-rest \

composer.lock

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

includes/data/mutation/class-cart-mutation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public static function prepare_cart_item( $input, $context, $info ) {
7676
*
7777
* @throws \GraphQL\Error\UserError Invalid cart attribute provided.
7878
*/
79-
private static function prepare_attributes( $product_id, array $variation_data = [] ) {
79+
public static function prepare_attributes( $product_id, array $variation_data = [] ) {
8080
$product = wc_get_product( $product_id );
8181

8282
// Bail if bad product ID.

0 commit comments

Comments
 (0)