diff --git a/tests/Unit/Filter/AuditScoreClassifierTest.php b/tests/Unit/Filter/AuditScoreClassifierTest.php index ec96938a..d33d290a 100644 --- a/tests/Unit/Filter/AuditScoreClassifierTest.php +++ b/tests/Unit/Filter/AuditScoreClassifierTest.php @@ -6,6 +6,7 @@ use PHPUnit\Framework\TestCase; use Piwik\Plugins\PerformanceAudit\Columns\Filters\AuditScoreClassifier; +use Piwik\Tests\Framework\Fixture; /** * @group Filter @@ -17,6 +18,8 @@ class AuditScoreClassifierTest extends TestCase { public function test_get_correct_score_tooltips() { + Fixture::loadAllTranslations(); + $tooltips = [ AuditScoreClassifier::getTooltip('100%', 'PerformanceAudit_Report_Score_Mobile'), AuditScoreClassifier::getTooltip('90%', 'PerformanceAudit_Report_Score_Mobile'), @@ -46,6 +49,8 @@ public function test_get_correct_score_tooltips() public function test_get_correct_first_contentful_paint_tooltips() { + Fixture::loadAllTranslations(); + $tooltips = [ AuditScoreClassifier::getTooltip('0', 'PerformanceAudit_Report_FirstContentfulPaint_Mobile'), AuditScoreClassifier::getTooltip('1.999', 'PerformanceAudit_Report_FirstContentfulPaint_Mobile'),