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:
authorsgiehl <stefan@piwik.org>2016-03-23 00:01:12 +0300
committersgiehl <stefan@piwik.org>2016-03-23 00:18:06 +0300
commit6ead0d23d4e77048ce45aae5fcb2519c5544856b (patch)
tree234799b792309c7dde5f09a69a9b8436d4f9fac5
parentfb6a6bdadc05bbce85a0b197979cf657b83cf183 (diff)
adds test
-rw-r--r--plugins/Goals/tests/Integration/APITest.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/plugins/Goals/tests/Integration/APITest.php b/plugins/Goals/tests/Integration/APITest.php
index 913bebf0a6..7dcb79eef5 100644
--- a/plugins/Goals/tests/Integration/APITest.php
+++ b/plugins/Goals/tests/Integration/APITest.php
@@ -62,6 +62,13 @@ class APITest extends IntegrationTestCase
$this->assertGoal($idGoal, 'MyName', 'url', 'http://www.test.de', 'exact', 1, 50, 1);
}
+ public function test_addGoal_ShouldSucceed_IfExactPageTitle()
+ {
+ $idGoal = $this->api->addGoal($this->idSite, 'MyName', 'title', 'normal title', 'exact', true, 50, true);
+
+ $this->assertGoal($idGoal, 'MyName', 'title', 'normal title', 'exact', 1, 50, 1);
+ }
+
/**
* @expectedException \Exception
* @expectedExceptionMessage Goals_ExceptionInvalidMatchingString