diff options
author | dizzy <diosmosis@users.noreply.github.com> | 2021-06-18 10:14:35 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-18 10:14:35 +0300 |
commit | 482cf02b00876f799516036cef52c061136a0954 (patch) | |
tree | b55cc1644958685c4e9dfe3994bc17d05957d7f4 /tests/PHPUnit/bootstrap.php | |
parent | 3af87103094fc48699fa656ac6795ec56f5775d2 (diff) |
fix regression in trackingspamprevention and warning in bound parameter checking code (#17683)
* remove testdox
* fix warning if parameters is a single value, not an array
* allow skipping valid host check for hardcoded URLs we know are valid
* print testdox hint in case build takes too long to finish consistently
* move testdox warning to correct boostrap file
* fixing some tests + fix use of Date in bind params
Diffstat (limited to 'tests/PHPUnit/bootstrap.php')
-rw-r--r-- | tests/PHPUnit/bootstrap.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/PHPUnit/bootstrap.php b/tests/PHPUnit/bootstrap.php index 88e5362054..f74696e954 100644 --- a/tests/PHPUnit/bootstrap.php +++ b/tests/PHPUnit/bootstrap.php @@ -135,6 +135,7 @@ $config = Config::getInstance(); prepareServerVariables($config); prepareTestDatabaseConfig($config); checkPiwikSetupForTests(); +printTestDoxHint(); function checkPiwikSetupForTests() { @@ -156,3 +157,8 @@ Try again."; } } + +function printTestDoxHint() +{ + print "\nIf these tests time out consistently, it can be helpful to temporarily set testdox=true in the phpunit.xml.dist in order to see which test is causing the issue.\n"; +}
\ No newline at end of file |