public it_add_a_group_in_the_db_respecting_convention ( Fenos\Notifynder\Contracts\NotifynderGroupDB $groupDB, |
||
$groupDB | Fenos\Notifynder\Contracts\NotifynderGroupDB | |
$group |
public function it_add_a_group_in_the_db_respecting_convention(NotifynderGroupDB $groupDB, NotificationGroup $group)
{
$name = 'my.category';
$groupDB->create($name)->shouldBeCalled()->willReturn($group);
$this->addGroup($name)->shouldReturnAnInstanceOf(NotificationGroup::class);
}