Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZoltan Flamis <zoltan@innocraft.com>2021-05-21 02:19:45 +0300
committerGitHub <noreply@github.com>2021-05-21 02:19:45 +0300
commit65d98197430a523119f60aa3246db2031e15362c (patch)
tree15d9701418ce2a3a6d1a0df0f339e18a08320655 /plugins/Feedback/tests/Integration
parent5d9cf649aeefa7a1390574c2b147ce972b1b5c39 (diff)
Modiy refer banner (#17598)
Diffstat (limited to 'plugins/Feedback/tests/Integration')
-rw-r--r--plugins/Feedback/tests/Integration/FeedbackTest.php9
-rw-r--r--plugins/Feedback/tests/Integration/ReferBannerTest.php4
2 files changed, 3 insertions, 10 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()