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

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/PHPUnit/Plugins/SegmentEditorTest.php')
-rw-r--r--tests/PHPUnit/Plugins/SegmentEditorTest.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/PHPUnit/Plugins/SegmentEditorTest.php b/tests/PHPUnit/Plugins/SegmentEditorTest.php
index 97728d909e..9d0f36d878 100644
--- a/tests/PHPUnit/Plugins/SegmentEditorTest.php
+++ b/tests/PHPUnit/Plugins/SegmentEditorTest.php
@@ -33,6 +33,9 @@ class SegmentEditorTest extends DatabaseTestCase
APISitesManager::getInstance()->addSite('test', 'http://example.org');
}
+ /**
+ * @group Plugins
+ */
public function testAddInvalidSegment_ShouldThrow()
{
try {
@@ -47,6 +50,9 @@ class SegmentEditorTest extends DatabaseTestCase
}
}
+ /**
+ * @group Plugins
+ */
public function test_AddAndGet_SimpleSegment()
{
$name = 'name';
@@ -70,6 +76,9 @@ class SegmentEditorTest extends DatabaseTestCase
$this->assertEquals($segment, $expected);
}
+ /**
+ * @group Plugins
+ */
public function test_AddAndGet_AnotherSegment()
{
$name = 'name';
@@ -111,6 +120,9 @@ class SegmentEditorTest extends DatabaseTestCase
$this->assertEquals($segments, array());
}
+ /**
+ * @group Plugins
+ */
public function test_UpdateSegment()
{
$name = 'name"';
@@ -152,6 +164,9 @@ class SegmentEditorTest extends DatabaseTestCase
$this->assertEquals($newSegment['name'], $nameSegment1);
}
+ /**
+ * @group Plugins
+ */
public function test_deleteSegment()
{
$idSegment1 = API::getInstance()->add('name 1', 'searches==0', $idSite = 1, $autoArchive = 1, $enabledAllUsers = 1);