function testDelete() { $name = "Meditate"; $motivation = "Clarity"; $interval_days = 3; $id = 4; $completed = False; $test_habit = new Habit($name, $motivation, $interval_days, $completed, $id); $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(); $test_habit->delete(); $this->assertEquals([$test_habit2], Habit::getAll()); }