Skip to content

Commit

Permalink
enchance unit test #36
Browse files Browse the repository at this point in the history
  • Loading branch information
MathieuNls committed Jan 4, 2016
1 parent b41fffb commit c4c3a2e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion application/tests/controllers/Measures_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public function test_indexDeleteWatch(){
'POST',
['Measures', 'delete_watch'],
[
'deleteWatch' => $watch->watchId
'watchId' => $watch->watchId
]
);

Expand Down Expand Up @@ -164,6 +164,8 @@ public function test_accuracyMeasure() {

$measure = $CI->Measure->find_by('watchId', self::$watchId);

$CI->session->set_userdata('referenceTime', time());

$output = $this->request(
'POST',
['Measures', 'accuracyMeasure'],
Expand All @@ -174,6 +176,8 @@ public function test_accuracyMeasure() {
]
);



$this->assertContains('true', $output);

}
Expand Down

0 comments on commit c4c3a2e

Please sign in to comment.