public function delete($groupId) { return $this->groupModel->where('id', $groupId)->delete(); }
/** @test */ function it_delete_a_group_by_id() { $group = $this->createGroup(); $this->group->delete($group->id); $this->assertCount(0, NotificationGroup::all()); }