Code Duplication    Length = 9-9 lines in 2 locations

spec/Fenos/Notifynder/Groups/GroupManagerSpec.php 2 locations

@@ 35-43 (lines=9) @@
32
    }
33
34
    /** @test */
35
    public function it_try_to_find_an_not_existing_group_by_id(NotifynderGroupDB $groupDB)
36
    {
37
        $group_id = 1;
38
39
        $groupDB->find($group_id)->shouldBeCalled()
40
            ->willReturn(null);
41
42
        $this->shouldThrow(NotifynderGroupNotFoundException::class)->during('findById', [$group_id]);
43
    }
44
45
    /** @test */
46
    public function it_find_a_group_by_name(NotifynderGroupDB $groupDB, NotificationGroup $group)
@@ 57-65 (lines=9) @@
54
    }
55
56
    /** @test */
57
    public function it_try_to_find_an_not_existing_group_by_name(NotifynderGroupDB $groupDB)
58
    {
59
        $group_name = 'mygroup';
60
61
        $groupDB->findByName($group_name)->shouldBeCalled()
62
            ->willReturn(null);
63
64
        $this->shouldThrow(NotifynderGroupNotFoundException::class)->during('findByName', [$group_name]);
65
    }
66
67
    /** @test */
68
    public function it_add_a_category_to_a_group_by_id(NotifynderGroupCategoryDB $groupCategoryDB, NotificationGroup $group)