From 3cc6d78f87b921f981c3f8fa1034dae0153033dd Mon Sep 17 00:00:00 2001 From: Altamash Shaikh Date: Wed, 23 Aug 2023 12:58:37 +0530 Subject: [PATCH] testcases fix --- CHANGELOG.md | 1 + plugin.json | 2 +- tests/Fixtures/CustomAlerts.php | 8 ++++++++ 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1f94178..f2099af 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,6 @@ ## Changelog +* 4.1.1 Fixed alert conditions not reloading on site change * 4.1.0 Migrate AngularJS to Vue * 4.0.4 Fixed autocomplete for country to trigger alerts * 4.0.3 Grouped alert condition select in UI diff --git a/plugin.json b/plugin.json index 375be20..5b24c08 100644 --- a/plugin.json +++ b/plugin.json @@ -1,7 +1,7 @@ { "name": "CustomAlerts", "description": "Create custom Alerts to be notified of important changes on your website or app! ", - "version": "4.1.0", + "version": "4.1.1", "require": { "matomo": ">=4.10.0-b1,<5.0.0-b1" }, diff --git a/tests/Fixtures/CustomAlerts.php b/tests/Fixtures/CustomAlerts.php index 73b2b77..26cba26 100644 --- a/tests/Fixtures/CustomAlerts.php +++ b/tests/Fixtures/CustomAlerts.php @@ -11,6 +11,7 @@ use Piwik\Piwik; use Piwik\Plugins\CustomAlerts\Model; use Piwik\Tests\Framework\Fixture; +use Piwik\Plugins\Goals\API; /** * Tracks custom events @@ -32,6 +33,13 @@ private function setUpWebsites() if (!self::siteCreated($idSite = 1)) { self::createWebsite($this->dateTime); } + + // tests run in UTC, the Tracker in UTC + if (!self::siteCreated($idSite = 2)) { + self::createWebsite($this->dateTime); + } + + API::getInstance()->addGoal($idSite, 'Goal for idSite 2', 'title', 'normal title', 'exact', true, 50, true); } private function addAlerts()