コード例 #1
0
ファイル: HabitTest.php プロジェクト: r-hills/live_test
 function testGetActiveHabitCount2()
 {
     $name = "Meditate";
     $motivation = "Clarity";
     $interval_days = 5;
     $completed = False;
     $test_habit = new Habit($name, $motivation, $interval_days, $completed);
     $test_habit->save();
     $name2 = "Go running";
     $motivation2 = "Fitness";
     $interval_days2 = 35;
     $id2 = 5;
     $completed2 = False;
     $test_habit2 = new Habit($name2, $motivation2, $interval_days2, $completed2, $id2);
     $test_habit2->save();
     $result = Habit::getActiveHabitCount();
     $this->assertEquals(2, $result);
 }