Skip to content

Commit 2cdd124

Browse files
committed
[Maintenance] Support Sylius 1.14
1 parent 87c8c53 commit 2cdd124

File tree

7 files changed

+17
-8
lines changed

7 files changed

+17
-8
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,24 @@ jobs:
1717
runs-on: ubuntu-latest
1818

1919
name: "Sylius ${{ matrix.sylius }}, PHP ${{ matrix.php }}, Symfony ${{ matrix.symfony }},
20-
MySQL ${{ matrix.mysql }}, State Machine Adapter ${{ matrix.state_machine_adapter }}"
20+
MySQL ${{ matrix.mysql }}, State Machine Adapter ${{ matrix.state_machine_adapter }}, Node ${{ matrix.node }}"
2121

2222
strategy:
2323
fail-fast: false
2424
matrix:
2525
php: [ "8.1", "8.2", "8.3" ]
2626
symfony: ["^5.4", "^6.4"]
27-
sylius: [ "^1.13", "^1.14" ]
27+
sylius: [ "~1.13.0", "~1.14.0" ]
2828
node: [ "18.x", "20.x" ]
2929
mysql: ["8.0"]
3030
state_machine_adapter: ["winzou_state_machine", "symfony_workflow"]
3131

32+
exclude:
33+
-
34+
php: "8.3"
35+
symfony: "^5.4"
36+
sylius: "~1.13.0"
37+
3238
env:
3339
APP_ENV: test
3440
DATABASE_URL: "mysql://root:root@127.0.0.1/sylius?serverVersion=${{ matrix.mysql }}"

doc/05-testing.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,6 @@ $ composer install
99
$ cd tests/Application
1010
```
1111

12-
Copy `package.json.~1.xx.dist` file to `package.json` for specific version of Sylius (example for 1.12.0):
13-
```bash
14-
$ cp package.json.\~1.12.dist package.json
15-
```
16-
1712
Then:
1813

1914
```bash
@@ -26,4 +21,4 @@ $ APP_ENV=test symfony server:start --port=8080 --dir=tests/Application/public -
2621
$ open https://localhost:8080
2722
$ vendor/bin/behat
2823
$ vendor/bin/phpspec run
29-
```
24+
```

tests/Functional/Responses/Expected/Api/WishlistTest/1.12/test_admin_can_get_wishlists.json renamed to tests/Functional/Responses/Expected/Api/WishlistTest/1.14/test_admin_can_get_wishlists.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
}
2525
],
2626
"shopUser":{
27+
"@id": "\/api\/v2\/admin\/shop-users\/@integer@",
2728
"@type":"ShopUser",
2829
"id":"@integer@",
2930
"email":"@string@"
@@ -36,6 +37,7 @@
3637
"id":"@integer@",
3738
"wishlistProducts":"@array@",
3839
"shopUser":{
40+
"@id": "\/api\/v2\/admin\/shop-users\/@integer@",
3941
"@type":"ShopUser",
4042
"id":"@integer@",
4143
"email":"@string@"
@@ -50,6 +52,7 @@
5052

5153
],
5254
"shopUser":{
55+
"@id": "\/api\/v2\/admin\/shop-users\/@integer@",
5356
"@type":"ShopUser",
5457
"id":"@integer@",
5558
"email":"@string@"
@@ -62,6 +65,7 @@
6265
"id":"@integer@",
6366
"wishlistProducts":"@array@",
6467
"shopUser":{
68+
"@id": "\/api\/v2\/admin\/shop-users\/@integer@",
6569
"@type":"ShopUser",
6670
"id":"@integer@",
6771
"email":"@string@"

tests/Functional/Responses/Expected/Api/WishlistTest/1.12/test_user_can_add_product_to_wishlist.json renamed to tests/Functional/Responses/Expected/Api/WishlistTest/1.14/test_user_can_add_product_to_wishlist.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
}
2222
],
2323
"shopUser":{
24+
"@id": "\/api\/v2\/shop\/shop-users\/@integer@",
2425
"@type":"ShopUser",
2526
"id":"@integer@",
2627
"email":"@string@"

tests/Functional/Responses/Expected/Api/WishlistTest/1.12/test_user_can_add_product_variant_to_wishlist.json renamed to tests/Functional/Responses/Expected/Api/WishlistTest/1.14/test_user_can_add_product_variant_to_wishlist.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
}
2222
],
2323
"shopUser":{
24+
"@id": "\/api\/v2\/shop\/shop-users\/@integer@",
2425
"@type":"ShopUser",
2526
"id":"@integer@",
2627
"email":"@string@"

tests/Functional/Responses/Expected/Api/WishlistTest/1.12/test_user_can_create_wishlist.json renamed to tests/Functional/Responses/Expected/Api/WishlistTest/1.14/test_user_can_create_wishlist.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"id":"@integer@",
66
"wishlistProducts":"@array@",
77
"shopUser": {
8+
"@id": "\/api\/v2\/shop\/shop-users\/@integer@",
89
"@type": "ShopUser",
910
"id":"@integer@",
1011
"email": "@string@"

tests/Functional/Responses/Expected/Api/WishlistTest/1.12/test_user_can_get_wishlist_items.json renamed to tests/Functional/Responses/Expected/Api/WishlistTest/1.14/test_user_can_get_wishlist_items.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
}
2626
],
2727
"shopUser":{
28+
"@id": "\/api\/v2\/shop\/shop-users\/@integer@",
2829
"@type":"ShopUser",
2930
"id":"@integer@",
3031
"email":"@string@"

0 commit comments

Comments
 (0)