Jan Jakes
fd72597e2c
Fix last insert ID type check
...
[MAILPOET-6142]
2024-08-19 15:29:42 +02:00
Jan Jakes
c25d7d6b53
Use single quotes for strings in SQL queries
...
This is more standard SQL and required by WPDB.
[MAILPOET-6142]
2024-08-19 15:29:42 +02:00
Mike Jolley
0d6fe6e5eb
Apply rules to tests and tasks
2024-03-21 16:57:59 +01:00
Rodrigo Primo
525495409c
Replace expect()->notNull() with verify()->notNull()
...
codeception/verify 2.1 removed support for expect()->notNull() so we need
to replace it with verify()->notNull().
[MAILPOET-5664]
2023-10-24 08:58:22 +03:00
Rodrigo Primo
9b56fdc688
Replace expect()->count() with verify()->arrayCount()
...
codeception/verify 2.1 removed support for expect()->count() so we need
to replace it with verify()->arrayCount().
[MAILPOET-5664]
2023-10-24 08:58:22 +03:00
Rodrigo Primo
e4136fee8c
Replace expect()->isEmpty() with verify()->empty()
...
codeception/verify 2.1 removed support for expect()->isEmpty() so we need
to replace it with verify()->empty().
[MAILPOET-5664]
2023-10-24 08:58:22 +03:00
Rodrigo Primo
5bc5b5ebd2
Replace expect()->notEmpty() with verify()->notEmpty()
...
codeception/verify 2.1 removed support for expect()->notEmpty() so we need
to replace it with verify()->notEmpty().
[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
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