function testUpdateMotivation() { $name = "Meditate"; $motivation = "Clarity"; $interval_days = 3; $id = 4; $completed = False; $test_habit = new Habit($name, $motivation, $interval_days, $completed, $id); $test_habit->save(); $new_motivation = "Hate my dad"; $result = $test_habit->updateMotivation($new_motivation); $this->assertEquals("Hate my dad", $test_habit->getMotivation()); }