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:
authorPeter Zhang <peter@innocraft.com>2021-11-15 16:11:26 +0300
committerGitHub <noreply@github.com>2021-11-15 16:11:26 +0300
commit9db3daa0349a2a08a8a50b28537722a611c3868d (patch)
tree9881b726da2d9e4dccc9a1617f310031cab0cc01 /plugins/Feedback/tests
parent89cb577059ff4b7d850c316dd361a326ecb39f47 (diff)
Update Feedback Question banner (#18308)
* Update UIIntegration_spec.js update table random UI * update icon list update icon list * update screen shots update screen shots * Update FeedbackQuestion.less hide feedback on mobile * update feed back update feed back * Update FeedbackTest.php update feedback Test * Update UIIntegration_spec.js update UI screenshot Test * update UI tests update UI tests * update screenshots update screenshots
Diffstat (limited to 'plugins/Feedback/tests')
-rw-r--r--plugins/Feedback/tests/Integration/FeedbackTest.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/Feedback/tests/Integration/FeedbackTest.php b/plugins/Feedback/tests/Integration/FeedbackTest.php
index 66fa6e7525..acadf9fc82 100644
--- a/plugins/Feedback/tests/Integration/FeedbackTest.php
+++ b/plugins/Feedback/tests/Integration/FeedbackTest.php
@@ -81,7 +81,7 @@ class FeedbackTest extends IntegrationTestCase
{
FakeAccess::$identity = '';
- $this->assertFalse($this->feedback->getShouldPromptForFeedback());
+ $this->assertFalse($this->feedback->showQuestionBanner());
}
@@ -89,32 +89,32 @@ class FeedbackTest extends IntegrationTestCase
{
Option::set('Feedback.nextFeedbackReminder.user1', '-1');
- $this->assertFalse($this->feedback->getShouldPromptForFeedback());
+ $this->assertFalse($this->feedback->showQuestionBanner());
}
public function test_shouldPromptForFeedback_nextReminderDateInPast()
{
FakeAccess::$identity = 'user1';
Option::set('Feedback.nextFeedbackReminder.user1', '2019-05-31');
- $this->assertTrue($this->feedback->getShouldPromptForFeedback());
+ $this->assertTrue($this->feedback->showQuestionBanner());
}
public function test_shouldPromptForFeedack_nextReminderDateToday()
{
Option::set('Feedback.nextFeedbackReminder.user1', '2018-10-31');
- $this->assertTrue($this->feedback->getShouldPromptForFeedback());
+ $this->assertTrue($this->feedback->showQuestionBanner());
}
public function test_shouldPromptForFeedback_user_oldThanHalfYear()
{
FakeAccess::$identity = 'user1';
Option::deleteLike('Feedback.nextFeedbackReminder.user1');
- $this->assertFalse($this->feedback->getShouldPromptForFeedback());
+ $this->assertFalse($this->feedback->showQuestionBanner());
}
public function test_shouldNotPromptForFeedback_user_LessThanHalfYear()
{
FakeAccess::$identity = 'user2';
- $this->assertFalse($this->feedback->getShouldPromptForFeedback());
+ $this->assertFalse($this->feedback->showQuestionBanner());
}
}