diff options
author | Zoltan Flamis <zoltan@innocraft.com> | 2021-02-23 05:41:15 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-23 05:41:15 +0300 |
commit | d288c96baf2b4c30b022364f6fdefe00b41e3821 (patch) | |
tree | e2625897d0c7da55abfdbe1733d2400d0e6fed14 /plugins/Feedback/tests/Integration | |
parent | 45fbd45ba47ed2d8ed0ea96e46d5c62d8d4f5264 (diff) |
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 <diosmosis@users.noreply.github.com>
Diffstat (limited to 'plugins/Feedback/tests/Integration')
-rw-r--r-- | plugins/Feedback/tests/Integration/ControllerTest.php | 1 | ||||
-rw-r--r-- | plugins/Feedback/tests/Integration/FeedbackTest.php | 1 |
2 files changed, 2 insertions, 0 deletions
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; |