delete() public method

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