Commit graph

1453 commits

Author SHA1 Message Date
Grzegorz Sadowski
25fa915993
Merge branch '2.0' into symfony-7
* 2.0: (26 commits)
  Update namespaces to Resource ^1.11 in 2.0
  [CS][DX] Refactor
  [CS][DX] Refactor
  [Maintenance] Update resource changes comparison in the upgrade file
  [Maintenance] Fix LazyOption repository template covariants
  [Maintenance] Note resource namespaces changes
  [Docs] Update namespaces
  [Maintenance] Update leftover namespaces
  Cover the scenario for allowing access for only correctly logged in users
  Enable the remaining cart suites
  [Maintenance] Fix translations' duplicated validation
  [Api][Unit] Fix it_gets_all_product_variants_when_invalid_product_filter_provided test
  [Api] Replace sylius.api to sylius_api
  [Api] Cover sorting and filtration of resources
  [Behat] Refine codebase for promotion and cart contexts
  Enable dashboard and homepage suites
  Minor Product config improvement
  Enable the rest of product tests and correct order of the attribute values in the response
  Correct contract tests and behat
  Bring back non exposed ProductOptionValue
  ...
2024-09-09 09:38:50 +02:00
Grzegorz Sadowski
a417aa3d78
[API] Shop Users and Customers (#16881)
| Q               | A
|-----------------|-----
| Branch?         | 2.0 <!-- see the comment below -->
| Bug fix?        | no
| New feature?    | no
| BC breaks?      | no
| Deprecations? | no <!-- don't forget to update the UPGRADE-*.md file
-->
| License         | MIT


TODO: Cover these scenarios
eb0a19aacb
<!--
 - Bug fixes must be submitted against the 1.13 branch
 - Features and deprecations must be submitted against the 1.14 branch
- Features, removing deprecations and BC breaks must be submitted
against the 2.0 branch
 - Make sure that the correct base branch is set

To be sure you are not breaking any Backward Compatibilities, check the
documentation:

https://docs.sylius.com/en/latest/book/organization/backward-compatibility-promise.html
-->
2024-09-09 08:39:00 +02:00
Grzegorz Sadowski
d333483655
Merge branch '2.0' into bootstrap-shop
* 2.0:
  Update namespaces to Resource ^1.11 in 2.0
  [CS][DX] Refactor
  [CS][DX] Refactor
  [Maintenance] Update resource changes comparison in the upgrade file
  [Maintenance] Fix LazyOption repository template covariants
  [Maintenance] Note resource namespaces changes
  [Docs] Update namespaces
  [Maintenance] Update leftover namespaces
  [Maintenance] Fix translations' duplicated validation
  [Maintenance] Fix static analysis
  [Maintenance] Update resource models FQCNs
  [Maintenance] Update FactoryInterface FQCN
  [Maintenance] Update RepositoryInterface FQCN
  [Maintenance] Bumped Sylius resource packages to ^1.11
2024-09-09 08:34:56 +02:00
Grzegorz Sadowski
bfdfa929e8
Resolve conflicts between 1.14 and 2.0 2024-09-09 07:28:58 +02:00
Grzegorz Sadowski
b33f700a3d
[UPMERGE] 2.0 -> payment-request (#16877)
This PR has been generated automatically.
For more details see
[upmerge_pr.yaml](/Sylius/Sylius/blob/1.13/.github/workflows/upmerge_pr.yaml).

**Remember!** The upmerge should always be merged with using `Merge pull
request` button.

In case of conflicts, please resolve them manually with usign the
following commands:
```
git fetch upstream
gh pr checkout <this-pr-number>
git merge upstream/payment-request -m "Resolve conflicts between 2.0 and payment-request"
```

If you use other name for the upstream remote, please replace `upstream`
with the name of your remote pointing to the `Sylius/Sylius` repository.

Once the conflicts are resolved, please run `git merge --continue` and
push the changes to this PR.
2024-09-06 15:13:36 +02:00
Rafikooo
6d01b9ab0e
[Unit] Add new shipment and payment tests and refine existing ones 2024-09-06 14:52:10 +02:00
Rafikooo
db3e259356
[Unit] Add disableShopContext util function 2024-09-06 14:52:09 +02:00
Rafikooo
00acfcc5f4
[Unit] Change nAWw2jewpA token value to token 2024-09-06 14:52:09 +02:00
Rafikooo
c33b9ea363
[Unit] Add new response util functions 2024-09-06 14:23:56 +02:00
Rafikooo
747ed4914e
[Unit] Refine order placer trait 2024-09-06 14:23:56 +02:00
Wojdylak
3f164fcf09
Resolve conflicts between 2.0 and payment-request 2024-09-06 11:04:40 +02:00
Grzegorz Sadowski
1f263a4e4a
Merge branch '2.0' into bootstrap-shop
* 2.0:
  [Api][Unit] Fix it_gets_all_product_variants_when_invalid_product_filter_provided test
  [Api] Replace sylius.api to sylius_api
  [Api] Cover sorting and filtration of resources
2024-09-05 10:11:48 +02:00
Grzegorz Sadowski
aa7b4c62fa
Merge branch '2.0' into bootstrap-shop
* 2.0:
  [Behat] Refine codebase for promotion and cart contexts
  Enable dashboard and homepage suites
  Minor Product config improvement
  Enable the rest of product tests and correct order of the attribute values in the response
  Correct contract tests and behat
  Bring back non exposed ProductOptionValue
  [Behat] Refine flow of shop promotion scenarios
2024-09-05 10:09:27 +02:00
Wojdylak
eac4c38dc1
[Api][Unit] Fix it_gets_all_product_variants_when_invalid_product_filter_provided test 2024-09-05 09:33:27 +02:00
Wojdylak
bceb1c0928
[Api] Cover sorting and filtration of resources 2024-09-05 09:33:25 +02:00
Grzegorz Sadowski
a452741130
[API] Enable remaining Product tests (#16848)
| Q               | A
|-----------------|-----
| Branch?         | api-platform-3 <!-- see the comment below -->
| Bug fix?        | no
| New feature?    | no
| BC breaks?      | no
| License         | MIT

<!--
 - Bug fixes must be submitted against the 1.13 branch
 - Features and deprecations must be submitted against the 1.14 branch
- Features, removing deprecations and BC breaks must be submitted
against the 2.0 branch
 - Make sure that the correct base branch is set

To be sure you are not breaking any Backward Compatibilities, check the
documentation:

https://docs.sylius.com/en/latest/book/organization/backward-compatibility-promise.html
-->
2024-09-05 09:28:29 +02:00
Grzegorz Sadowski
882cefd8e4
Merge branch '2.0' into symfony-7
* 2.0:
  [CS][DX] Refactor
  [Unit][Admin] Add product variant collection filtering test
  [UpgradeAPI] Add a note about PostgreSQLDriverExceptionListener removal
  [Upgrade] Fix indentation
  [API] Remove obsolete PostgreSQLDriverExceptionListener
  Remove api-platform-3 and add payment-request to upmerge workflow
2024-09-05 08:26:18 +02:00
Grzegorz Sadowski
aa97121c5d
Merge branch '2.0' into bootstrap-shop
* 2.0:
  [CS][DX] Refactor
  [Unit][Admin] Add product variant collection filtering test
  [UpgradeAPI] Add a note about PostgreSQLDriverExceptionListener removal
  [Upgrade] Fix indentation
  [API] Remove obsolete PostgreSQLDriverExceptionListener
  Remove api-platform-3 and add payment-request to upmerge workflow
2024-09-05 08:26:01 +02:00
Rafikooo
d5c6f39f6c
[Unit][Admin] Add product variant collection filtering test 2024-09-05 00:20:30 +02:00
Grzegorz Sadowski
9db198d6fa
Resolve conflicts between 2.0 and bootstrap-shop 2024-09-04 15:19:35 +02:00
Grzegorz Sadowski
d1407d6153
Resolve conflicts between 2.0 and symfony-7 2024-09-04 13:19:19 +02:00
Kamil Grygierzec
648d167372
Correct contract tests and behat 2024-09-04 12:05:51 +02:00
Jan Goralski
2283134805
[Maintenance] Update RepositoryInterface FQCN 2024-09-04 09:08:59 +02:00
Kamil Grygierzec
eba41de116
[API] Enable contract tests for statistics (without validation) (#16830)
| Q               | A
|-----------------|-----
| Branch?         | api-platform-3
| Bug fix?        | no
| New feature?    | no
| BC breaks?      | no
| Deprecations? | no <!-- don't forget to update the UPGRADE-*.md file
-->
| Related tickets | 
| License         | MIT

<!--
 - Bug fixes must be submitted against the 1.13 branch
 - Features and deprecations must be submitted against the 1.14 branch
- Features, removing deprecations and BC breaks must be submitted
against the 2.0 branch
 - Make sure that the correct base branch is set

To be sure you are not breaking any Backward Compatibilities, check the
documentation:

https://docs.sylius.com/en/latest/book/organization/backward-compatibility-promise.html
-->
2024-09-02 15:33:45 +02:00
Kamil Grygierzec
30a3401abc
[API] Rename resources configurations + enable remaining contract tests for Customer resource (#16828)
| Q               | A
|-----------------|-----
| Branch?         | api-platform-3
| Bug fix?        | no
| New feature?    | no
| BC breaks?      | no
| Deprecations? | no<!-- don't forget to update the UPGRADE-*.md file
-->
| Related tickets | 
| License         | MIT

<!--
 - Bug fixes must be submitted against the 1.13 branch
 - Features and deprecations must be submitted against the 1.14 branch
- Features, removing deprecations and BC breaks must be submitted
against the 2.0 branch
 - Make sure that the correct base branch is set

To be sure you are not breaking any Backward Compatibilities, check the
documentation:

https://docs.sylius.com/en/latest/book/organization/backward-compatibility-promise.html
-->
2024-09-02 15:31:14 +02:00
Grzegorz Sadowski
9c2bbc57e4
[API] Enable contract tests for statistics (without validation) 2024-09-02 14:38:58 +02:00
Grzegorz Sadowski
b0cd88be22
[API] Enable remaining contract tests for Customer resource + minor refactor 2024-09-02 14:02:13 +02:00
Grzegorz Sadowski
ef88c793c3
[API] Enable contract tests for Province resource 2024-09-02 12:54:51 +02:00
Grzegorz Sadowski
510e77faa2
[API] Enable contract tests for Product Attribute Value resource 2024-09-02 12:54:46 +02:00
Rafikooo
875ab8a362
[ECS] Apply ecs fixes 2024-08-29 12:34:57 +02:00
Wojdylak
b8ab1dcd9e [Api] Change commands to immutable classes 2024-08-29 06:39:35 +02:00
Wojdylak
55bf57508c [Api] Mirror improvments 2024-08-29 06:39:35 +02:00
Rafikooo
45cd7320b4 [Unit] Use AdminUserLoginTrait explicitly 2024-08-28 10:46:06 +02:00
Rafikooo
02e9e64ae0 [Unit] Correct 'complete payment' response 2024-08-28 10:46:06 +02:00
Rafikooo
c97e240e43 [Unit] Update URI path from /payment-method/ to /payment-methods/ 2024-08-28 10:46:06 +02:00
Rafikooo
1529ab7b69 [Unit] Refactor shop payments test 2024-08-28 10:46:06 +02:00
Rafikooo
a0f77f3e69 [Unit] Move all default headers calls into 'setUp' function 2024-08-28 10:46:06 +02:00
Rafikooo
7cbe348bd7 [Unit] Deprecate log in traits 2024-08-28 10:46:06 +02:00
Rafikooo
6366a15455 [Unit] Allow to pass the email into the setUpAdminContext function 2024-08-28 10:46:06 +02:00
Rafikooo
8bb72b50be [Unit] Add refund payment tests 2024-08-28 10:46:06 +02:00
Rafikooo
686293508d [Unit] Add 'JsonApiTestCase::assertResponseErrorMessage' utility function 2024-08-28 10:46:06 +02:00
Rafikooo
270d9df84a [Unit] Allow to pass body to the PATCH request method 2024-08-28 07:56:00 +02:00
Rafikooo
fea11cdbab [Unit] Include embedded email field in the cart responses 2024-08-28 07:56:00 +02:00
Rafikooo
847b25b83d [ECS] Apply ecs fixes 2024-08-28 07:56:00 +02:00
Rafikooo
f3b01d5827 [Unit] Adjust checkout and order tests responses after serialization changes 2024-08-28 07:56:00 +02:00
Rafikooo
66395c67c9 [Unit] Add shop context util function 2024-08-28 07:56:00 +02:00
Loïc Frémont
c63a42b82d [SF7] Add Symfony 7 support for User bundle 2024-08-23 14:45:44 +02:00
Kamil Grygierzec
299b0f2eb5
[API] Upgrade Product Association resource to API Platform 3 (#16749)
| Q               | A
|-----------------|-----
| Branch?         | api-platform-3
| Bug fix?        | no
| New feature?    | no
| BC breaks?      | no
| Deprecations?   | no
| Related tickets | 
| License         | MIT

TODO:

- [ ] adjust Behat scenarios

<!--
 - Bug fixes must be submitted against the 1.13 branch
 - Features and deprecations must be submitted against the 1.14 branch
- Features, removing deprecations and BC breaks must be submitted
against the 2.0 branch
 - Make sure that the correct base branch is set

To be sure you are not breaking any Backward Compatibilities, check the
documentation:

https://docs.sylius.com/en/latest/book/organization/backward-compatibility-promise.html
-->
2024-08-21 11:31:57 +02:00
Kamil Grygierzec
50befb1503 Enable tests 2024-08-21 11:13:45 +02:00
Grzegorz Sadowski
6bf790dfae
[API][Admin] Enable contract tests for Product Association resource 2024-08-21 10:34:10 +02:00