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/Core/PiwikTest.php')
-rw-r--r--tests/PHPUnit/Core/PiwikTest.php15
1 files changed, 8 insertions, 7 deletions
diff --git a/tests/PHPUnit/Core/PiwikTest.php b/tests/PHPUnit/Core/PiwikTest.php
index e1697dde83..26a0339309 100644
--- a/tests/PHPUnit/Core/PiwikTest.php
+++ b/tests/PHPUnit/Core/PiwikTest.php
@@ -1,13 +1,14 @@
<?php
-use Piwik\Piwik;
-use Piwik\Access;
-
/**
* Piwik - Open source web analytics
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/
+use Piwik\Piwik;
+use Piwik\Access;
+use Piwik\Translate;
+
class PiwikTest extends DatabaseTestCase
{
/**
@@ -113,14 +114,14 @@ class PiwikTest extends DatabaseTestCase
$this->markTestSkipped("Will not pass on 32-bit machine.");
}
- Piwik_Translate::getInstance()->loadEnglishTranslation();
+ Translate::getInstance()->loadEnglishTranslation();
$sentenceExpected = str_replace(' ', '&nbsp;', $expected[0]);
$numericExpected = $expected[1];
$this->assertEquals($sentenceExpected, Piwik::getPrettyTimeFromSeconds($seconds, $sentence = true));
$this->assertEquals($numericExpected, Piwik::getPrettyTimeFromSeconds($seconds, $sentence = false));
- Piwik_Translate::getInstance()->unloadEnglishTranslation();
+ Translate::getInstance()->unloadEnglishTranslation();
}
/**
@@ -211,7 +212,7 @@ class PiwikTest extends DatabaseTestCase
*/
public function testGetPrettyValue($columnName, $value, $expected)
{
- Piwik_Translate::getInstance()->loadEnglishTranslation();
+ Translate::getInstance()->loadEnglishTranslation();
$access = Access::getInstance();
$access->setSuperUser(true);
@@ -223,7 +224,7 @@ class PiwikTest extends DatabaseTestCase
Piwik::getPrettyValue($idsite, $columnName, $value, false, false)
);
- Piwik_Translate::getInstance()->unloadEnglishTranslation();
+ Translate::getInstance()->unloadEnglishTranslation();
}
/**