From d288c96baf2b4c30b022364f6fdefe00b41e3821 Mon Sep 17 00:00:00 2001 From: Zoltan Flamis Date: Tue, 23 Feb 2021 15:41:15 +1300 Subject: 13976 segments not deleted (#17231) * transfer segments when user deleted * test transferAllUserSegments * test deleted user lost segments * fix test errors * remove static modifier Co-authored-by: dizzy --- plugins/Feedback/tests/Integration/ControllerTest.php | 1 + plugins/Feedback/tests/Integration/FeedbackTest.php | 1 + 2 files changed, 2 insertions(+) (limited to 'plugins/Feedback') diff --git a/plugins/Feedback/tests/Integration/ControllerTest.php b/plugins/Feedback/tests/Integration/ControllerTest.php index 67f41da8d9..533dc533f5 100644 --- a/plugins/Feedback/tests/Integration/ControllerTest.php +++ b/plugins/Feedback/tests/Integration/ControllerTest.php @@ -47,6 +47,7 @@ class ControllerTest extends IntegrationTestCase public function tearDown(): void { + FakeAccess::$identity = 'user1'; Option::deleteLike('Feedback.nextFeedbackReminder.%'); $this->userModel->deleteUserOnly('user1'); Date::$now = $this->now; diff --git a/plugins/Feedback/tests/Integration/FeedbackTest.php b/plugins/Feedback/tests/Integration/FeedbackTest.php index f044592a84..5b926e57d1 100644 --- a/plugins/Feedback/tests/Integration/FeedbackTest.php +++ b/plugins/Feedback/tests/Integration/FeedbackTest.php @@ -48,6 +48,7 @@ class FeedbackTest extends IntegrationTestCase public function tearDown(): void { + FakeAccess::$identity = 'user1'; Option::deleteLike('Feedback.nextFeedbackReminder.%'); $this->userModel->deleteUserOnly('user1'); Date::$now = $this->now; -- cgit v1.2.3