Ignore errors after fetching models with ORM and a few misc errors [MAILPOET-2488]

This commit is contained in:
wxa
2019-12-26 19:04:51 +03:00
committed by amine-mp
parent cde877122a
commit ee4246eaf0
3 changed files with 900 additions and 1 deletions

View File

@@ -0,0 +1,63 @@
parameters:
ignoreErrors:
-
message: "#^Parameter \\#1 \\$json of function json_decode expects string, string\\|false given\\.$#"
count: 1
path: ../../tests/DataFactories/Newsletter.php
-
message: "#^Parameter \\#1 \\$query of method PDO\\:\\:exec\\(\\) expects string, string\\|false given\\.$#"
count: 1
path: ../../tests/_support/CleanupExtension.php
-
message: "#^Parameter \\#3 \\$subject of function preg_replace expects array\\|string, string\\|false given\\.$#"
count: 1
path: ../../tests/_support/Helper/Database.php
-
message: "#^Parameter \\#1 \\$query of method PDO\\:\\:exec\\(\\) expects string, string\\|null given\\.$#"
count: 1
path: ../../tests/_support/Helper/Database.php
-
message: "#^Parameter \\#1 \\$function of function call_user_func_array expects callable\\(\\)\\: mixed, string given\\.$#"
count: 1
path: ../../tests/_support/Helper/WordPress.php
-
message: "#^Parameter \\#2 \\$value of function get_user_by expects int\\|string, int\\|WP_Error given\\.$#"
count: 1
path: ../../tests/acceptance/ViewSegmentSubscribersCest.php
-
message: "#^Cannot access property \\$roles on WP_User\\|false\\.$#"
count: 1
path: ../../tests/acceptance/ViewSegmentSubscribersCest.php
-
message: "#^Cannot call method remove_role\\(\\) on WP_User\\|false\\.$#"
count: 1
path: ../../tests/acceptance/ViewSegmentSubscribersCest.php
-
message: "#^Cannot call method add_role\\(\\) on WP_User\\|false\\.$#"
count: 1
path: ../../tests/acceptance/ViewSegmentSubscribersCest.php
-
message: "#^Property MailPoet\\\\Test\\\\Subscribers\\\\ImportExport\\\\Import\\\\MailChimpTest\\:\\:\\$api_key \\(string\\) does not accept string\\|false\\.$#"
count: 1
path: ../../tests/unit/Subscribers/ImportExport/Import/MailChimpTest.php
-
message: "#^Parameter \\#2 \\$str of function explode expects string, string\\|false given\\.$#"
count: 1
path: ../../tests/unit/Subscribers/ImportExport/Import/MailChimpTest.php
-
message: "#^Property MailPoet\\\\Test\\\\WP\\\\ReadmeTest\\:\\:\\$data \\(string\\) does not accept string\\|false\\.$#"
count: 1
path: ../../tests/unit/WP/ReadmeTest.php