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:
authorThomas Steur <thomas.steur@googlemail.com>2014-10-05 10:40:06 +0400
committerThomas Steur <thomas.steur@googlemail.com>2014-10-05 10:40:06 +0400
commit5a61c09733bb7912711b804ce91652d111e00169 (patch)
tree74387a08cc53fd64e167dfa90b3541b0fc3a3161 /plugins/ExamplePlugin/tests
parentf34a13eacb6c2aabeb1ed16432a053fe44e982ec (diff)
refs #5940 databaseTestCase => integrationTestCase. Fixed some mentions of integration => system
Diffstat (limited to 'plugins/ExamplePlugin/tests')
-rw-r--r--plugins/ExamplePlugin/tests/SimpleSystemTest.php (renamed from plugins/ExamplePlugin/tests/SimpleIntegrationTest.php)28
-rw-r--r--plugins/ExamplePlugin/tests/fixtures/SimpleFixtureTrackFewVisits.php4
2 files changed, 16 insertions, 16 deletions
diff --git a/plugins/ExamplePlugin/tests/SimpleIntegrationTest.php b/plugins/ExamplePlugin/tests/SimpleSystemTest.php
index 85308b4b15..ec36ab8e31 100644
--- a/plugins/ExamplePlugin/tests/SimpleIntegrationTest.php
+++ b/plugins/ExamplePlugin/tests/SimpleSystemTest.php
@@ -13,10 +13,10 @@ use Piwik\Tests\SystemTestCase;
/**
* @group ExamplePlugin
- * @group SimpleIntegrationTest
+ * @group SimpleSystemTest
* @group Plugins
*/
-class SimpleIntegrationTest extends SystemTestCase
+class SimpleSystemTest extends SystemTestCase
{
/**
* @var SimpleFixtureTrackFewVisits
@@ -25,7 +25,6 @@ class SimpleIntegrationTest extends SystemTestCase
/**
* @dataProvider getApiForTesting
- * @group SimpleIntegrationTest
*/
public function testApi($api, $params)
{
@@ -34,17 +33,20 @@ class SimpleIntegrationTest extends SystemTestCase
public function getApiForTesting()
{
- $api = array('API.get',
- 'Goals.getItemsSku');
+ $api = array(
+ 'API.get',
+ 'Goals.getItemsSku'
+ );
- $apiToTest = array();
+ $apiToTest = array();
$apiToTest[] = array($api,
- array( 'idSite' => 1,
- 'date' => self::$fixture->dateTime,
- 'periods' => array('day'),
- 'testSuffix' => ''
-
- ));
+ array(
+ 'idSite' => 1,
+ 'date' => self::$fixture->dateTime,
+ 'periods' => array('day'),
+ 'testSuffix' => ''
+ )
+ );
return $apiToTest;
}
@@ -61,4 +63,4 @@ class SimpleIntegrationTest extends SystemTestCase
}
-SimpleIntegrationTest::$fixture = new SimpleFixtureTrackFewVisits(); \ No newline at end of file
+SimpleSystemTest::$fixture = new SimpleFixtureTrackFewVisits(); \ No newline at end of file
diff --git a/plugins/ExamplePlugin/tests/fixtures/SimpleFixtureTrackFewVisits.php b/plugins/ExamplePlugin/tests/fixtures/SimpleFixtureTrackFewVisits.php
index f0515abfb1..ea9755f6a1 100644
--- a/plugins/ExamplePlugin/tests/fixtures/SimpleFixtureTrackFewVisits.php
+++ b/plugins/ExamplePlugin/tests/fixtures/SimpleFixtureTrackFewVisits.php
@@ -11,7 +11,7 @@ use Piwik\Date;
use Piwik\Tests\Fixture;
/**
- * Generates tracker testing data for our SimpleIntegrationTest
+ * Generates tracker testing data for our SimpleSystemTest
*
* This Simple fixture adds one website and tracks one visit with couple pageviews and an ecommerce conversion
*/
@@ -55,7 +55,6 @@ class SimpleFixtureTrackFewVisits extends Fixture
$t->setForceVisitDateTime(Date::factory($this->dateTime)->addHour(0.25)->getDatetime());
$t->addEcommerceItem($sku = 'SKU_ID', $name = 'Test item!', $category = 'Test & Category', $price = 777, $quantity = 33);
self::checkResponse($t->doTrackEcommerceOrder('TestingOrder', $grandTotal = 33 * 77));
-
}
protected function trackSecondVisit()
@@ -74,6 +73,5 @@ class SimpleFixtureTrackFewVisits extends Fixture
$t->setForceVisitDateTime(Date::factory($this->dateTime)->addHour(0.3)->getDatetime());
$t->addEcommerceItem($sku = 'SKU_ID2', $name = 'A durable item', $category = 'Best seller', $price = 321);
self::checkResponse($t->doTrackEcommerceCartUpdate($grandTotal = 33 * 77));
-
}
} \ No newline at end of file