summaryrefslogtreecommitdiff
path: root/tests/units/Model
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-03-04 16:06:34 -0500
committerFrederic Guillot <fred@kanboard.net>2016-03-04 16:06:34 -0500
commitabe9371f32e55c3806c8dde41d1f555e5159752d (patch)
tree23b073ea77103a406431cc3b937e102442617334 /tests/units/Model
parent2c2ac8c46790ca9bc7870902d62cf23c95ff7b45 (diff)
Improve test case to avoid false positive with the CI
Diffstat (limited to 'tests/units/Model')
-rw-r--r--tests/units/Model/ProjectDailyStatsTest.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/units/Model/ProjectDailyStatsTest.php b/tests/units/Model/ProjectDailyStatsTest.php
index 573878c2..c3b20cb9 100644
--- a/tests/units/Model/ProjectDailyStatsTest.php
+++ b/tests/units/Model/ProjectDailyStatsTest.php
@@ -42,6 +42,13 @@ class ProjectDailyStatsTest extends Base
)
);
- $this->assertEquals($expected, $metrics);
+ $this->assertEquals($expected[0]['day'], $metrics[0]['day']);
+ $this->assertEquals($expected[1]['day'], $metrics[1]['day']);
+
+ $this->assertEquals($expected[0]['avg_lead_time'], $metrics[0]['avg_lead_time'], '', 2);
+ $this->assertEquals($expected[1]['avg_lead_time'], $metrics[1]['avg_lead_time'], '', 2);
+
+ $this->assertEquals($expected[0]['avg_cycle_time'], $metrics[0]['avg_cycle_time'], '', 2);
+ $this->assertEquals($expected[1]['avg_cycle_time'], $metrics[1]['avg_cycle_time'], '', 2);
}
}