diff options
Diffstat (limited to 'tests/PHPUnit/Integration/Columns/DimensionMetricFactoryTest.php')
-rw-r--r-- | tests/PHPUnit/Integration/Columns/DimensionMetricFactoryTest.php | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/tests/PHPUnit/Integration/Columns/DimensionMetricFactoryTest.php b/tests/PHPUnit/Integration/Columns/DimensionMetricFactoryTest.php index 0957d64350..55704e9d85 100644 --- a/tests/PHPUnit/Integration/Columns/DimensionMetricFactoryTest.php +++ b/tests/PHPUnit/Integration/Columns/DimensionMetricFactoryTest.php @@ -1,6 +1,6 @@ <?php /** - * Piwik - free/libre analytics platform + * Matomo - free/libre analytics platform * * @link https://matomo.org * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later @@ -8,15 +8,13 @@ namespace Piwik\Tests\Integration\Columns; -use Piwik\Columns\ComputedMetricFactory; use Piwik\Columns\Dimension; use Piwik\Columns\DimensionMetricFactory; -use Piwik\Columns\MetricsList; use Piwik\Plugin\ArchivedMetric; use Piwik\Plugin\ComputedMetric; use Piwik\Plugins\UserCountry\Columns\Country; +use Piwik\Tests\Framework\Fixture; use Piwik\Tests\Framework\TestCase\IntegrationTestCase; -use Piwik\Translate; /** * @group Core @@ -26,18 +24,18 @@ class DimensionMetricFactoryTest extends IntegrationTestCase /** @var Dimension */ private $country; - public function setUp() + public function setUp(): void { parent::setUp(); - Translate::loadEnglishTranslation(); + Fixture::loadAllTranslations(); $this->country = new Country(); } - public function tearDown() + public function tearDown(): void { - Translate::unloadEnglishTranslation(); + Fixture::resetTranslations(); parent::tearDown(); } |