From fa23dc76e4ed1ba729a45d51da76edf7c0202eec Mon Sep 17 00:00:00 2001 From: Stefan Giehl Date: Thu, 20 Feb 2020 13:44:10 +0100 Subject: Removes deprecated class Piwik\Translate (#15586) * Removes deprecated class Piwik\Translate * use submodule branches * adjust test * fix typo * readd deprecated Piwik\Translate * submodule updates --- plugins/SegmentEditor/tests/Integration/SegmentFormatterTest.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'plugins/SegmentEditor/tests') diff --git a/plugins/SegmentEditor/tests/Integration/SegmentFormatterTest.php b/plugins/SegmentEditor/tests/Integration/SegmentFormatterTest.php index 9d314fd930..8d03a23c38 100644 --- a/plugins/SegmentEditor/tests/Integration/SegmentFormatterTest.php +++ b/plugins/SegmentEditor/tests/Integration/SegmentFormatterTest.php @@ -12,8 +12,6 @@ use Piwik\Plugins\SegmentEditor\SegmentFormatter; use Piwik\Plugins\SegmentEditor\SegmentList; use Piwik\Tests\Framework\Fixture; use Piwik\Tests\Framework\TestCase\IntegrationTestCase; -use Piwik\Translate; -use Exception; /** * @group SegmentFormatterTest @@ -37,12 +35,12 @@ class SegmentFormatterTest extends IntegrationTestCase $this->idSite = Fixture::createWebsite('2012-01-01 00:00:00'); $this->formatter = new SegmentFormatter(new SegmentList()); - Translate::loadAllTranslations(); + Fixture::loadAllTranslations(); } public function tearDown() { - Translate::reset(); + Fixture::resetTranslations(); } public function test_getHumanReadable_noSegmentGiven_ShouldReturnDefaultSegment() -- cgit v1.2.3