Commit Graph

14 Commits

Author SHA1 Message Date
John Oleksowicz
8bb917cd09 Prevent high order IDs from breaking tests
These tests were starting to fail if previous tests had created more
orders than the batch size

MAILPOET-5145
2023-04-07 12:11:12 -05:00
John Oleksowicz
cf67ad2a83 Add missing parent::_after calls
MAILPOET-5145
2023-04-07 12:11:12 -05:00
Rodrigo Primo
775ab32037 Fix PHPStan baseline errors in a few test files
[MAILPOET-4037]
2023-02-23 14:13:17 +01:00
David Remer
7db40b27b5 Fix errors automatically with phpcbf
[MAILPOET-4850]
2022-11-28 22:54:13 +03:00
Jan Lysý
1a2d8b8d40 Add saving nicename for created WP users
[MAILPOET-4841]
2022-11-26 09:09:00 +01:00
David Remer
d2ec7bba42 Replace instance_of asserts in integration tests
[MAILPOET-4258]
2022-11-25 14:32:34 +01:00
Rodrigo Primo
8e88a86f02 Refactor Segments\WooCommerce tests to stop using a WC_Order mock
We want to use real WooCommerce code instead of mocks for the tests that
are part of the woo test group and this change is necessary for a
subsequent commit that will modify
\MailPoet\Segments\WooCommerce::insertSubscriberFromOrder().

[MAILPOET-4570]
2022-10-03 09:30:42 +02:00
Rostislav Wolny
bb5a955c69 Used Woo code for cleaning up orders data in WooCommerce segment test
[MAILPOET-4566]
2022-09-08 13:02:52 +02:00
Rostislav Wolny
16ddb93d79 Refactor WooCommerce Segments test to use wc_create_order
[MAILPOET-4566]
2022-09-08 13:02:52 +02:00
Rostislav Wolny
ed5bd8de61 Add Woo dependent tests to woo group
Mark all integration tests that are related to WooCommerce with group "woo".
[MAILPOET-4566]
2022-09-08 13:02:52 +02:00
Brezo Cordero
b7a37e69b7 Init $customerRoleAdded on WooCommerceTest.php
This will make it non-nullable and have only the type bool.

[MAILPOET-3720]
2022-05-23 12:04:12 +02:00
Brezo Cordero
6d5eed6190 Remove PHPStan level 6 errors from Segments\WooCommerce
Remove the following errors:
(Method|Property|Function) has no (return )?type specified.
(Method|Function) has parameter with no type (specified).

[MAILPOET-3720]
2022-05-23 12:04:12 +02:00
David Remer
f5543b1990 Overwrite add_role method when creating test users
[MAILPOET-2834]
2022-05-12 11:41:57 +02:00
Jan Jakes
9f790efbf0 Move plugin files to a subfolder
[MAILPOET-3988]
2022-01-18 15:30:22 +01:00