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]
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]
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]
- 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]
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]