public function test_deleting_an_option_deletes_associated_selections() { $option = Factory::create(new Option()); $selection = Factory::create(new Selection(), ['option_id' => $option->id]); $option->delete(); $this->assertFalse(Selection::whereId($selection->id)->exists()); }