function testUpdateName() { $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_name = "Dance"; $result = $test_habit->updateName($new_name); $this->assertEquals("Dance", $test_habit->getName()); }