diff options
Diffstat (limited to 'plugins/Feedback/tests/Integration/ReferBannerTest.php')
-rw-r--r-- | plugins/Feedback/tests/Integration/ReferBannerTest.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/plugins/Feedback/tests/Integration/ReferBannerTest.php b/plugins/Feedback/tests/Integration/ReferBannerTest.php index b7b86aeae3..6e33a73604 100644 --- a/plugins/Feedback/tests/Integration/ReferBannerTest.php +++ b/plugins/Feedback/tests/Integration/ReferBannerTest.php @@ -6,8 +6,7 @@ * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later */ -namespace Piwik\Plugins\Feedback\tests\Unit; - +namespace Piwik\Plugins\Feedback\tests\Integration; use Piwik\Date; use Piwik\Option; @@ -46,7 +45,11 @@ class ReferBannerTest extends IntegrationTestCase public function tearDown(): void { Option::deleteLike('Feedback.nextReferReminder.%'); - $this->userModel->deleteUserOnly('user1'); + try { + $this->userModel->deleteUserOnly('user1'); + } catch (\Exception $e) { + // ignore possible errors triggered when the delete user event is posted + } parent::tearDown(); } |