diff options
author | Zoltan Flamis <zoltan@innocraft.com> | 2021-05-21 02:19:45 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-21 02:19:45 +0300 |
commit | 65d98197430a523119f60aa3246db2031e15362c (patch) | |
tree | 15d9701418ce2a3a6d1a0df0f339e18a08320655 /plugins/Feedback/tests | |
parent | 5d9cf649aeefa7a1390574c2b147ce972b1b5c39 (diff) |
Modiy refer banner (#17598)
Diffstat (limited to 'plugins/Feedback/tests')
5 files changed, 9 insertions, 16 deletions
diff --git a/plugins/Feedback/tests/Integration/FeedbackTest.php b/plugins/Feedback/tests/Integration/FeedbackTest.php index 5b926e57d1..f55d6e20f2 100644 --- a/plugins/Feedback/tests/Integration/FeedbackTest.php +++ b/plugins/Feedback/tests/Integration/FeedbackTest.php @@ -78,13 +78,6 @@ class FeedbackTest extends IntegrationTestCase $this->assertFalse($this->feedback->getShouldPromptForFeedback()); } - public function test_shouldPromptForFeedback_noFeedbackReminderOptionForUser_newUser() - { - Date::$now = Date::factory('2019-06-01')->getTimestamp(); // 90 days - - $this->assertTrue($this->feedback->getShouldPromptForFeedback()); - } - public function test_shouldPromptForFeedback_dontRemindUserAgain() { Option::set('Feedback.nextFeedbackReminder.user1', '-1'); @@ -115,4 +108,4 @@ class FeedbackTest extends IntegrationTestCase $this->assertFalse($this->feedback->getShouldPromptForFeedback()); } -}
\ No newline at end of file +} diff --git a/plugins/Feedback/tests/Integration/ReferBannerTest.php b/plugins/Feedback/tests/Integration/ReferBannerTest.php index 6e33a73604..b57377ee68 100644 --- a/plugins/Feedback/tests/Integration/ReferBannerTest.php +++ b/plugins/Feedback/tests/Integration/ReferBannerTest.php @@ -76,12 +76,12 @@ class ReferBannerTest extends IntegrationTestCase $this->assertFalse($this->feedback->showReferBanner()); } - public function test_shouldShowReferBannerTo_SuperUser() + public function test_shouldNotShowReferBannerTo_SuperUser_First() { FakeAccess::$identity = 'super'; FakeAccess::$superUser = true; - $this->assertTrue($this->feedback->showReferBanner()); + $this->assertFalse($this->feedback->showReferBanner()); } public function test_shouldNotShowReferBanner_ifNeverRemindOn() diff --git a/plugins/Feedback/tests/UI/expected-screenshots/FeedbackForm_show.png b/plugins/Feedback/tests/UI/expected-screenshots/FeedbackForm_show.png index 3637fa3dbb..935992cfa0 100644 --- a/plugins/Feedback/tests/UI/expected-screenshots/FeedbackForm_show.png +++ b/plugins/Feedback/tests/UI/expected-screenshots/FeedbackForm_show.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:084d20e309a39b4f07b16aa242baa2d2089d0b047f3cf56ac1db954e7a511e5b -size 269997 +oid sha256:a3371d2a1e343c77f1b3b5dcc14fe4e8a169023fe379ef515ddc01f867f7b23c +size 268928 diff --git a/plugins/Feedback/tests/UI/expected-screenshots/FeedbackPopup_feedback_popup.png b/plugins/Feedback/tests/UI/expected-screenshots/FeedbackPopup_feedback_popup.png index 9f8ecbe2da..47b7b15d4e 100644 --- a/plugins/Feedback/tests/UI/expected-screenshots/FeedbackPopup_feedback_popup.png +++ b/plugins/Feedback/tests/UI/expected-screenshots/FeedbackPopup_feedback_popup.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:ceb0c8e5321b0b6542d2978e588b01eaee0d30db92b78ae92a65518bb9d86708 -size 28395 +oid sha256:569affdd2877633a19212a4d409a2254f76593e1f1d5629a2caf6703586495be +size 27962 diff --git a/plugins/Feedback/tests/UI/expected-screenshots/ReferBannerTest_feedback_popup.png b/plugins/Feedback/tests/UI/expected-screenshots/ReferBannerTest_feedback_popup.png index b33ed5d4c8..bc9ade9144 100644 --- a/plugins/Feedback/tests/UI/expected-screenshots/ReferBannerTest_feedback_popup.png +++ b/plugins/Feedback/tests/UI/expected-screenshots/ReferBannerTest_feedback_popup.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:de4ce7f20f82c2c70a2ff0587ec3e14f5d93869e12f9cd4a6ac057d9747c0bc2 -size 14151 +oid sha256:001fa5fc54e4f316dfac5aab1b1802f9620e671dcb83e85279a4843afdfaef67 +size 14794 |