diff options
Diffstat (limited to 'tests/PHPUnit/Unit/DateTest.php')
-rw-r--r-- | tests/PHPUnit/Unit/DateTest.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/PHPUnit/Unit/DateTest.php b/tests/PHPUnit/Unit/DateTest.php index 450b0f11af..3cc586d3e0 100644 --- a/tests/PHPUnit/Unit/DateTest.php +++ b/tests/PHPUnit/Unit/DateTest.php @@ -12,7 +12,7 @@ use Exception; use Piwik\Container\StaticContainer; use Piwik\Date; use Piwik\SettingsServer; -use Piwik\Translate; +use Piwik\Tests\Framework\Fixture; /** */ @@ -404,14 +404,14 @@ class DateTest extends \PHPUnit\Framework\TestCase */ public function testGetLocalizedTimeFormats($language, $use12HourClock, $time, $shouldBe) { - Translate::loadAllTranslations(); + Fixture::loadAllTranslations(); StaticContainer::get('Piwik\Translation\Translator')->setCurrentLanguage($language); StaticContainer::get('Piwik\Intl\Data\Provider\DateTimeFormatProvider')->forceTimeFormat($use12HourClock); $date = Date::factory($time); $this->assertEquals($shouldBe, $date->getLocalized(Date::TIME_FORMAT)); - Translate::reset(); + Fixture::resetTranslations(); } /** |