From 0829d6e6ac487bf47e4197123d6683b271db8266 Mon Sep 17 00:00:00 2001 From: Stefan Giehl Date: Tue, 17 Aug 2021 09:58:59 +0200 Subject: Run AllTests on PHP8 (#16897) * Run AllTests on PHP8 * use newer phpunit for tests on PHP8 * fix notices/errors * handle trace of phpunit 9 * ensure to compare same types for range check * adjust expected result for php8 * try handling hasDependencies does not exist in PHPUnit 9 * fix: ArgumentCountError: mysqli_stmt::bind_param() does not accept unknown named parameters * Fix usercountry tests * remove incorrect date check * fix expected exception message * fix referrers api test for php8 * add test hint * try to fix session related tests * debug test failure * try to fix mail tests * fix filterUser method * exlucde phpunit from build size calculation * fix scheduled reports test * update release checklist test * unset climode * improves some tests --- plugins/TwoFactorAuth/tests/Integration/TwoFactorAuthTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'plugins/TwoFactorAuth') diff --git a/plugins/TwoFactorAuth/tests/Integration/TwoFactorAuthTest.php b/plugins/TwoFactorAuth/tests/Integration/TwoFactorAuthTest.php index 78a6c2f055..7291082949 100644 --- a/plugins/TwoFactorAuth/tests/Integration/TwoFactorAuthTest.php +++ b/plugins/TwoFactorAuth/tests/Integration/TwoFactorAuthTest.php @@ -137,8 +137,9 @@ class TwoFactorAuthTest extends IntegrationTestCase $this->assertEmpty($this->dao->getAllRecoveryCodesForLogin($this->userWith2Fa)); } - public function test_onDeleteUser_DoesNotFailToAddUserNotUsingTwoFa() + public function test_onDeleteUser_DoesNotFailToDeleteUserNotUsingTwoFa() { + $this->expectNotToPerformAssertions(); Request::processRequest('UsersManager.deleteUser', array( 'userLogin' => $this->userWithout2Fa )); -- cgit v1.2.3