-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCustomAlertsTest.php
More file actions
43 lines (36 loc) · 1.16 KB
/
CustomAlertsTest.php
File metadata and controls
43 lines (36 loc) · 1.16 KB
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?php
/**
* Matomo - free/libre analytics platform
*
* @link https://matomo.org
* @license https://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/
namespace Piwik\Plugins\Slack\tests;
use Piwik\Plugins\CustomAlerts\CustomAlerts;
use Piwik\Tests\Framework\TestCase\IntegrationTestCase;
use Piwik\Tests\Framework\TestingEnvironmentManipulator;
/**
* @group Slack
* @group CustomAlertsTest
* @group Plugins
*/
class CustomAlertsTest extends IntegrationTestCase
{
public function setUp(): void
{
self::$fixture->extraPluginsToLoad = array('CustomAlerts');
TestingEnvironmentManipulator::$extraPluginsToLoad = self::$fixture->extraPluginsToLoad;
parent::setUp();
$pluginManager = \Piwik\Plugin\Manager::getInstance();
$pluginManager->loadPlugin('CustomAlerts');
$pluginManager->installLoadedPlugins();
$pluginManager->activatePlugin('CustomAlerts');
}
public function testGetReportMediumOptions()
{
$this->assertContains(
['key' => 'slack', 'value' => 'CustomAlerts_MediumSlack', 'disabled' => false],
CustomAlerts::getReportMediumOptions()
);
}
}