Commit Graph

23 Commits

Author SHA1 Message Date
Rodrigo Primo
3320d1687e Remove messages showing each truncated table
This commit removes the messages that were displayed during the initial
stages of the integration tests execution showing the tables that were
truncated (one line per table).

We decided to do this to make the output of the tests execution cleaner
and to make it easier to find the actual results of the tests without
having to scroll down quite a bit.

We still show a message marking the stage where the tables are truncated:
`Cleaning up database...`.

[MAILPOET-4682]
2022-09-27 12:30:13 -05:00
John Oleksowicz
68b3b23e3c Assume WC is installed/activated for tests
MAILPOET-4566
2022-09-08 13:02:52 +02:00
Rostislav Wolny
16807fe9e3 Update and fix comments related to usage of Action Scheduler in cron
[MAILPOET-4274]
2022-08-03 10:36:57 +02:00
Rostislav Wolny
ddb63bfa9f Setup integration test to run without action scheduler cron
Action Scheduler was running in background causing random test failures.
[MAILPOET-4274]
2022-08-03 10:36:57 +02:00
Sam Najian
bcb7382760 Make local integration tests pick up env
[MAILPOET-4394]
2022-06-20 09:24:49 +02:00
Rodrigo Primo
c214eb4c85 Use trunk instead of master as the branch where tests cannot be skipped
[MAILPOET-3466]
2022-05-31 11:23:33 +01:00
Sam Najian
393154e080 Adjust used Docker container to run integration tests
[MAILPOET-4251]
2022-05-17 14:17:26 +02:00
Rodrigo Primo
cf2a0eb5cc Get the list of tables to truncate when running tests dynamically
While removing some deprecated models in the commit
a525b96f16, I noticed that we maintain a
list of tables that needs to be truncated before running the integration
tests. To make it easier when removing future models and to make sure
the list of tables is always updated, in this commit, I'm removing the
manual list and changing the code to dynamically get the tables and
truncate them.

The code that I removed from _bootstrap.php, meant that PHPStan error
was not present anymore, so it was possible to update its baseline files
to remove the ignores for that error.

[MAILPOET-4325]
2022-05-16 11:33:00 +02:00
Rodrigo Primo
01f0585400 Remove three Paris models that have been deprecated over six months ago
This commit removes the models Form, NewsletterLink and
StatisticsUnsubscribes as they were deprecated over six months ago and
are not used anymore in our codebase.

[MAILPOET-4325]
2022-05-16 11:33:00 +02:00
John Oleksowicz
73c023449b Use simpler method for overriding DI properties
MAILPOET-4236
2022-05-16 11:17:29 +02:00
John Oleksowicz
9bfe2b2ca1 Newsletter validation updates
- Rename validator to newsletterValidator for clarity
- Add validation for ALC content
- Refactor tests to use data factory for consistency and to avoid
validation issues
- Add separate tests for NewsletterValidator service
- Add test helper for retrieving service with private properties
overridden by name

[MAILPOET-4236]
2022-05-16 11:17:29 +02:00
Jan Jakes
36a3f34db8 Add generic API endpoint tests
[MAILPOET-4207]
2022-04-20 15:30:50 +02:00
Jan Jakes
e79b0e6b25 Activate automation for integration tests
[MAILPOET-4207]
2022-04-20 15:30:50 +02:00
Jan Jakes
54010fe7e4 Add abstract class for REST API integration tests
[MAILPOET-4207]
2022-04-20 15:30:50 +02:00
Jan Jakes
47a234c18e Reset features controller cache in integration tests
[MAILPOET-4207]
2022-04-20 15:30:50 +02:00
Sam
fc7313d44b Revert "Revert "Fix failing tests because of un-registered product post type""
This reverts commit fbcfa6db82.
2022-04-18 11:43:47 +02:00
Rodrigo Primo
fbcfa6db82 Revert "Fix failing tests because of un-registered product post type"
This reverts commit 7854645ea4.
2022-04-11 16:30:59 -03:00
Sam Najian
7854645ea4 Fix failing tests because of un-registered product post type
Post type `product` should be registered for the post type
related functions to work correctly

[MAILPOET-4082]
2022-04-11 14:54:56 -03:00
Brezo Cordero
0854d36256 Remove \Models\SubscriberIP
[MAILPOET-3899]
2022-02-28 09:42:56 +01:00
Rostislav Wolny
a644c71e64 Add subscriber detection from Woo Session to subscriber action tracker
[MAILPOET-4101]
2022-02-16 16:06:05 +01:00
Rodrigo Primo
a48e41970c Check if MailPoet is active before running integration tests
[MAILPOET-4089]
2022-02-07 15:14:19 +01:00
Jan Lysý
d68f31f4c1 Replace using backupGlobals from PHPUnit
Because globals backup in PHPUnit 8 is slower due to
the checking if global is serializable. We used
our custom solution inspired by WC.
[MAILPOET-4053]
2022-01-19 13:14:42 +01:00
Jan Jakes
9f790efbf0 Move plugin files to a subfolder
[MAILPOET-3988]
2022-01-18 15:30:22 +01:00