Skip to content

Commit

Permalink
testcases fix
Browse files Browse the repository at this point in the history
  • Loading branch information
AltamashShaikh committed Aug 23, 2023
1 parent 57e29c8 commit 3cc6d78
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion plugin.json
Original file line number Diff line number Diff line change
@@ -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"
},
Expand Down
8 changes: 8 additions & 0 deletions tests/Fixtures/CustomAlerts.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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()
Expand Down

0 comments on commit 3cc6d78

Please sign in to comment.