public it_try_to_find_an_not_existing_group_by_id ( Fenos\Notifynder\Contracts\NotifynderGroupDB $groupDB ) | ||
$groupDB | Fenos\Notifynder\Contracts\NotifynderGroupDB |
public function it_try_to_find_an_not_existing_group_by_id(NotifynderGroupDB $groupDB)
{
$group_id = 1;
$groupDB->find($group_id)->shouldBeCalled()->willReturn(null);
$this->shouldThrow(NotifynderGroupNotFoundException::class)->during('findById', [$group_id]);
}