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

FeedbackPopupFixture.php « Fixtures « tests « Feedback « plugins - github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e2ceaeb164fe54282b478c4e357ce9bf4f328fe1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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');
    }

}