Commit graph

654 commits

Author SHA1 Message Date
Jan Goralski
54e7f87883
[Fix] Early return in CartCollector on stateless requests 2023-10-12 14:46:06 +02:00
Jacob Tobiasz
96586c8c13
Fix CI 2023-09-13 15:08:08 +02:00
TheMilek
ec95d92e4a
Recalculate adjustments total on OrderItem and OrderItemUnit level 2023-08-03 13:13:00 +02:00
Rafikooo
0268c02a7f
[Unit][Orders] Add tests for items quantity change 2023-06-29 13:44:58 +02:00
Rafikooo
8606840507
[Unit][Orders] Add tests for checkout completion 2023-06-29 13:44:58 +02:00
Rafikooo
a5f7c232dd
[Unit][Orders] Add tests for preventing from order completion 2023-06-29 13:44:58 +02:00
Rafikooo
5161355453
[Unit][Orders] Add test for validating shipmentId when trying to assign shipping method 2023-06-29 13:44:58 +02:00
Rafikooo
7f36b7e3fb
[Unit][Utils] Introduce ContentType helper class 2023-06-29 04:12:30 +02:00
Rafikooo
500bf9479e
[Unit][Orders][Shop] Add test for validation invalid payment param 2023-06-28 21:32:19 +02:00
Rafikooo
8363d0d3c3
[Unit][Orders][Shop] Add test for invalid uri param validation 2023-06-27 12:53:59 +02:00
Rafikooo
4bfbb8e38e
[Unit][Orders][Shop] Extract helper methods 2023-06-27 12:53:58 +02:00
Rafikooo
b024c5680f
[Maintenance] Update the copyright block 2023-06-14 21:53:36 +02:00
Jakub Tobiasz
7ff4567187
Add purging a database before CartCollector no channel test 2023-05-25 12:36:06 +02:00
Jakub Tobiasz
1ef726d1ff
Remove redundant fixtures from LocaleResolving functional test 2023-05-25 12:16:02 +02:00
Jakub Tobiasz
88bb5f1548
Cover locale resolving with functional tests 2023-05-18 06:28:51 +02:00
Rafikooo
600ef008a3
[API] Restore default API Platform exception response codes 2023-04-18 07:41:07 +02:00
Rafikooo
a37a4d7820
[API] Add order item removal validation and return proper HTTP status code 2023-04-05 17:01:41 +02:00
Jan Goralski
e514c99737
[Locale][API] Additional locale code validation 2023-03-24 15:39:56 +01:00
Jan Goralski
f5f69b4492
[Fix] Take care of no session available in cart storage 2023-03-03 12:58:12 +01:00
Jakub Tobiasz
f2c15a61da
bugfix #11121 Fixed: Calculator at TaxRate fixtures (igormukhingmailcom)
This PR was merged into the 1.12 branch.

Discussion
----------

| Q               | A
| --------------- | -----
| Branch?         | any
| Bug fix?        | yes
| New feature?    | no
| BC breaks?      | no
| Deprecations?   | no
| Related tickets | no
| License         | MIT

Not sure it that matter, but for taxes there is only one calculator - `default`.
`flat_rate` is for shipping I guess.

Commits
-------

b842bd5cb6 Fixed: Calculator at TaxRate fixtures

Not sure it that matter, but for taxes there is only one calculator - `default`.
`flat_rate` is for shipping I guess.
2023-02-28 11:32:00 +01:00
Grzegorz Sadowski
0312dbb11e
bug #14826 Fix order by composite keys in OrderByIdentifierSqlWalker (coldic3)
This PR was merged into the 1.12 branch.

Discussion
----------

| Q               | A                                                            |
|-----------------|--------------------------------------------------------------|
| Branch?         | 1.12    |
| Bug fix?        | yes                                                       |
| New feature?    | no                                                       |
| BC breaks?      | no                                                       |
| Deprecations?   | no |
| Related tickets | fixes https://github.com/Sylius/Sylius/issues/14823                      |
| License         | MIT                                                          |

Commits
-------

d1a595b90c Fix order by composite keys in OrderByIdentifierSqlWalker
2023-02-23 07:06:26 +01:00
Kevin Kaniaburka
d1a595b90c
Fix order by composite keys in OrderByIdentifierSqlWalker 2023-02-22 19:11:55 +01:00
Rafikooo
4f9864491b
[Orders][API] Change cart item delete HTTP response code to 204 2023-02-20 17:51:57 +01:00
Igor Mukhin
b842bd5cb6
Fixed: Calculator at TaxRate fixtures
Not sure it that matter, but for taxes there is only one calculator - `default`.
`flat_rate` is for shipping I guess.
2023-02-07 15:13:28 +01:00
TheMilek
da1e00aaa9
Merge branch '1.11' into 1.12
* 1.11:
  [PHPUnit] Update DriverConnectionMock
  Fix the wrong DQL alias in OrderByIdentifierSqlWalker
2023-02-01 11:53:21 +01:00
Kevin Kaniaburka
4cd27986aa
[PHPUnit] Update DriverConnectionMock 2023-02-01 09:33:10 +01:00
Kevin Kaniaburka
35800cbf6c
Fix the wrong DQL alias in OrderByIdentifierSqlWalker 2023-02-01 09:23:16 +01:00
Grzegorz Sadowski
b64a9848ac
Merge branch '1.11' into 1.12
* 1.11:
  [PHPStan] Exclude SqlWalker because of a memory issue
  [Core][Configuration] Add sylius_core.order_by_identifier parameter
  [PHPUnit] Test OrderByIdentifierSqlWalker
  Default order by in to-many associations
  Add OrderByIdentifierSqlWalker
2023-01-12 12:31:10 +01:00
Kevin Kaniaburka
d604d47cd3
[PHPUnit] Test OrderByIdentifierSqlWalker 2023-01-11 08:52:23 +01:00
Grzegorz Sadowski
8184c90d0f
Merge branch '1.11' into 1.12
* 1.11:
  [DX] Add .editorconfig for test API responses
2022-12-13 13:49:05 +01:00
Grzegorz Sadowski
207b696790
minor #14575 [DX] Add EditorConfig for test API responses (coldic3)
This PR was merged into the 1.11 branch.

Discussion
----------

| Q               | A                                                            |
|-----------------|--------------------------------------------------------------|
| Branch?         | 1.11|
| Bug fix?        | no                                                       |
| New feature?    | no                                                       |
| BC breaks?      | no                                                       |
| Deprecations?   | no |
| Related tickets |                       |
| License         | MIT                                                          |

EditorConfig from the root directory forces us to use 2 indents but in tests, we use 4 instead.

Commits
-------

7748c854f5 [DX] Add .editorconfig for test API responses
2022-12-13 13:48:46 +01:00
Mateusz Zalewski
bd96511835
Fix getting sylius.command_bus from container 2022-12-08 10:27:49 +01:00
Kevin Kaniaburka
81e4425d3c
[PHPUnit] Adjust contract tests after upmerge 2022-12-08 10:27:31 +01:00
Grzegorz Sadowski
14062278bc
Merge branch '1.11' into 1.12
* 1.11:
  [Cart] Fix creating an order as a guest while logged in as a customer
  [API] Fetching an order created by guest with an email already existed
2022-12-08 08:34:08 +01:00
Kevin Kaniaburka
07747b03a4
Merge branch '1.11' into 1.12
* 1.11:
  [GitHub Actions] Restrict "Refactor" workflow to Sylius/Sylius repo
  Use MakerBundle instead of SensioGeneratorBundle
  [PHPUnit] Fix OrdersTest::it_allows_to_patch_orders_address
  BUGFIX #13176 fix test
  TASK: #13176 adjust serialization config and test
  BUGFIX: #13176 fix content type
  TASK: #13176 use put api route to update order billing address
  TASK: #13176 add unit test for address update on order
  BUGFIX: #13175 move missing groups to defined attributes, remove duplication
  BUGFIX: #13176 add missing serialization configuration for phone number, company name
2022-12-07 16:03:46 +01:00
Rafikooo
d1cc47930e
[API] Fetching an order created by guest with an email already existed 2022-12-06 15:08:29 +01:00
Kevin Kaniaburka
463c5eb112
[PHPUnit] Fix OrdersTest::it_allows_to_patch_orders_address 2022-12-06 09:23:24 +01:00
André Hoffmann
6181dee3d3
BUGFIX #13176 fix test 2022-12-06 09:23:24 +01:00
André Hoffmann
d92fdf0b3a
TASK: #13176 adjust serialization config and test 2022-12-06 09:23:24 +01:00
André Hoffmann
15fa6c5378
BUGFIX: #13176 fix content type 2022-12-06 09:23:24 +01:00
André Hoffmann
1370a9c3f1
TASK: #13176 use put api route to update order billing address 2022-12-06 09:23:24 +01:00
André Hoffmann
97c70bcf39
TASK: #13176 add unit test for address update on order 2022-12-06 09:23:23 +01:00
Grzegorz Sadowski
faccd41d89
Merge branch '1.11' into 1.12
* 1.11:
  [API] Fix ProductReview normalization context
2022-11-29 08:06:03 +01:00
Kevin Kaniaburka
7748c854f5
[DX] Add .editorconfig for test API responses 2022-11-24 15:20:50 +01:00
Jan Goralski
d35cb6ccd1
[API] Fix ProductReview normalization context 2022-11-24 14:03:42 +01:00
Loïc Frémont
7edbaf6de2 Move filter storage into ui bundle 2022-10-12 11:33:19 +02:00
Loïc Frémont
4e6f28c5ad Fix - move RedirctPathExtension from Admin bundle to Ui bundle 2022-10-12 11:29:43 +02:00
Mateusz Zalewski
a49d879e3d
[Symfony 6] Remove setting services for test as public 2022-10-06 07:23:44 +02:00
Mateusz Zalewski
011ad0bead
Return the whole application build 2022-10-05 10:41:43 +02:00
Jan Goralski
ab61828b61
[Maintenance] Remove Swiftmailer-based unit tests 2022-10-05 10:36:09 +02:00