Jan Jakes
c7dc7e5a24
Replace PDO types with Doctrine's ParameterType
...
[MAILPOET-6142]
2024-08-19 15:29:42 +02:00
Jan Jakes
9be6895cf1
Simplify automation test helpers
...
[MAILPOET-6131]
2024-07-10 12:56:52 +02:00
Jan Lysý
26a98f1000
Update composer package doctrine/dbal
...
We cannot update to the latest version of the dbal 3 because there is a another package conflict.
[MAILPOET-6101]
2024-06-17 12:38:08 +02:00
Rostislav Wolny
1b13d041f1
Add a helper for creating posts in integration tests
...
[MAILPOET-6014]
2024-05-01 11:15:27 +01:00
Mike Jolley
0d6fe6e5eb
Apply rules to tests and tasks
2024-03-21 16:57:59 +01:00
Jan Jakes
eaee987048
Implement cart total field
...
[MAILPOET-5934]
2024-03-14 11:09:12 +01:00
John Oleksowicz
82e85db657
Add test helper to create woo tags
...
MAILPOET-4985
2024-03-13 10:24:42 +01:00
John Oleksowicz
a4a2ef3b1f
Add support for local variation attributes
...
In WooCommerce it's possible to create attributes that are local to a
specific product. When these attributes are used to generate variations,
they are stored in the postmeta table.
MAILPOET-5467
2024-03-11 10:52:30 +01:00
John Oleksowicz
bfa3770d99
Add backend logic for purchase by attribute filter
...
MAILPOET-5467
2024-03-11 10:52:30 +01:00
Jan Jakes
d0d9c223b4
Simplify factory in integration tester
...
[PREMIUM-253]
2024-03-11 10:31:15 +01:00
Rodrigo Primo
374fbe6867
Replace Segment model with Doctrine in \MailPoet\Segments\WP
...
[MAILPOET-5752]
2024-02-12 15:33:28 +01:00
Rodrigo Primo
eb8351f964
Replace verify()->equals() with verify->equalsWithDelta()
...
The second parameter of expect()->equals() could be a integer and in
this case it would be used as a delta when comparing the values.
verify()->equals() does not accept that and verify()->equalsWithDelta()
should be used.
[MAILPOET-5664]
2023-10-24 08:58:22 +03:00
Rodrigo Primo
afe378ba22
Replace expect()->equals() with verify()->equals()
...
codeception/verify 2.1 removed support for expect()->equals() so we need
to replace it with verify()->equals().
[MAILPOET-5664]
2023-10-24 08:58:22 +03:00
John Oleksowicz
916547d29d
Flush test filters and add unique names
...
This prevents an error I was getting when trying to create/run multiple
filters in the same test
MAILPOET-5007
2023-08-14 13:49:55 +02:00
John Oleksowicz
530fc0acd3
Allow setting price when creating test coupons
...
MAILPOET-5007
2023-08-14 13:49:55 +02:00
John Oleksowicz
d4d244fa0e
Ensure coupon stats are updated in tests
...
MAILPOET-5007
2023-08-14 13:49:55 +02:00
John Oleksowicz
ce9cbdc45d
Add backend logic for number of reviews filter
...
MAILPOET-5413
2023-08-07 11:06:27 +02:00
John Oleksowicz
61bb3a65d7
Add backend logic for customer text field filters
...
MAILPOET-4990
2023-06-28 15:14:03 +02:00
Jan Jakes
2c44192fa9
Fix coupon cleanup in tests and a typo
...
[MAILPOET-5169]
2023-06-19 11:06:23 +02:00
Jan Jakes
8b04415243
Ensure billing email in orders (required by HPOS sync)
...
[MAILPOET-5169]
2023-06-19 11:06:23 +02:00
Jan Jakes
f0e2681a55
Add functionality to create and properly clean Woo coupons in integration tester
...
[MAILPOET-5169]
2023-06-19 11:06:23 +02:00
Jan Jakes
94af99e5dd
Add functionality to create and properly clean WP terms in integration tester
...
[MAILPOET-5169]
2023-06-19 11:06:23 +02:00
Jan Jakes
e1653dcfcf
Add functionality to create and properly clean Woo products in integration tester
...
[MAILPOET-5169]
2023-06-19 11:06:23 +02:00
John Oleksowicz
9c6f957154
Move more functionality to test helper to create orders
...
MAILPOET-4987
2023-05-11 11:47:01 +02:00
John Oleksowicz
4576dd289f
Add woo filter helper tests for order status
...
MAILPOET-5083
2023-04-13 17:56:13 +02:00
John Oleksowicz
a2d6da8c61
Add test helper for checking emails
...
MAILPOET-5083
2023-04-13 17:56:13 +02:00
John Oleksowicz
6a2da4645b
Remove apparently unnecessary DB query
...
Removing this code didn't result in any tests failing, so I can only
assume it isn't required for anything.
We were occasionally seeing primary key constraint violations when
attempting to execute this query.
MAILPOET-5145
2023-04-07 12:11:12 -05:00
John Oleksowicz
cd0b795ac8
Extract customer creation/cleanup
...
This also ensures that cleanup always runs after all integration tests
MAILPOET-5145
2023-04-07 12:11:12 -05:00
David Remer
cd9bf9107f
Move createAutomationRun method to integration tester
...
[MAILPOET-4966]
2023-03-01 16:14:38 +01:00
David Remer
7379b83a92
Move createAutomation method to integration tester
...
[MAILPOET-4966]
2023-03-01 16:14:38 +01:00
Jan Jakes
82aeb89854
Use strict types in tests
...
[MAILPOET-2688]
2022-11-29 15:04:09 +01:00
Rostislav Wolny
dac8c1e2f3
Improve assertEqualDateTimes helper interface
...
Make sure that both dates parameters have to be passed into the method.
[MAILPOET-4723]
2022-11-07 10:10:17 +01:00
Rostislav Wolny
2c28449b58
Add helper method for comparing DateTimeInterface objects
...
This commit adds a method to the integration tester that allows
comparing two DateTimeInterface objects and specify tolerated delta.
It also allows passing null and assert the DateTimeInterface internally.
This is because often our entities have return type DateTimeInterface|null
So with the internal checks we don't have to make those instance of checks
each time we pass date from entity into the method.
Note: I was not able to use $this->assertInstanceOf because PHPStan was not accepting that
and still complained.
[MAILPOET-4723]
2022-11-07 10:10:17 +01:00
Rodrigo Primo
7de66934ca
Add option to set billing_email when creating test Woo orders
...
[MAILPOET-4570]
2022-10-03 15:10:36 +02:00
Rodrigo Primo
6a06b81dca
Add option to set date_created when creating test Woo orders
...
[MAILPOET-4570]
2022-10-03 15:10:36 +02:00
Rostislav Wolny
16ddb93d79
Refactor WooCommerce Segments test to use wc_create_order
...
[MAILPOET-4566]
2022-09-08 13:02:52 +02:00
John Oleksowicz
7c54fc800a
Give integration tester ability to create orders
...
MAILPOET-4566
2022-09-08 13:02:52 +02:00
Jan Jakes
9f790efbf0
Move plugin files to a subfolder
...
[MAILPOET-3988]
2022-01-18 15:30:22 +01:00