Skip to content

Commit

Permalink
test: Fix AuditScoreClassifierTest
Browse files Browse the repository at this point in the history
  • Loading branch information
DevDavido committed Dec 20, 2023
1 parent 42d9588 commit d406a59
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/Unit/Filter/AuditScoreClassifierTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

use PHPUnit\Framework\TestCase;
use Piwik\Plugins\PerformanceAudit\Columns\Filters\AuditScoreClassifier;
use Piwik\Tests\Framework\Fixture;

/**
* @group Filter
Expand All @@ -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'),
Expand Down Expand Up @@ -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'),
Expand Down

0 comments on commit d406a59

Please sign in to comment.