diff options
author | Kate Butler <kate@innocraft.com> | 2019-06-18 07:45:33 +0300 |
---|---|---|
committer | Matthieu Aubry <mattab@users.noreply.github.com> | 2019-06-18 07:45:33 +0300 |
commit | 57f7184a0dc49df4eacbbd27ca0aef909668b410 (patch) | |
tree | 2e859a11c514d1d7e8ccd302d42703c4897cb2c1 /plugins/Feedback/tests/Fixtures | |
parent | 3cdce09b6b27fa8378b2b7eec55760f3aa04951d (diff) |
Ask users to leave a review for Matomo (#14432)
* Ask users to leave a review for Matomo - WIP commit
* Unit tests for feedback reminder popup
* Tidying up
* Add content to popup, also display on help page and after thumbs-up rating
* Make UI tests; move logic out of API into Controller; tidying up
* FIX UI tests
* Use SVG icons
* Fix test
* New expected screenshot for test; tear down feedback reminder option so that other tests won't display it
* New fixture for FeedbackPopup tests
* Move feedback form UI spec out of UIIntegration, update screenshot
* Check auth on updateFeedbackReminderDate() route
* PR changes
* Fix bug from typecasting
Diffstat (limited to 'plugins/Feedback/tests/Fixtures')
-rw-r--r-- | plugins/Feedback/tests/Fixtures/FeedbackPopupFixture.php | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/plugins/Feedback/tests/Fixtures/FeedbackPopupFixture.php b/plugins/Feedback/tests/Fixtures/FeedbackPopupFixture.php new file mode 100644 index 0000000000..e2ceaeb164 --- /dev/null +++ b/plugins/Feedback/tests/Fixtures/FeedbackPopupFixture.php @@ -0,0 +1,25 @@ +<?php + + +namespace Piwik\Plugins\Feedback\tests\Fixtures; + +use Piwik\Date; +use Piwik\Option; +use Piwik\Tests\Fixtures\UITestFixture; + +class FeedbackPopupFixture extends UITestFixture +{ + public function setUp() + { + parent::setUp(); + $yesterday = Date::yesterday(); + Option::set('Feedback.nextFeedbackReminder.superUserLogin', $yesterday->toString('Y-m-d')); + } + + public function tearDown() + { + parent::tearDown(); + Option::delete('Feedback.nextFeedbackReminder.superUserLogin'); + } + +}
\ No newline at end of file |