Code Duplication    Length = 9-10 lines in 2 locations

Tests/EloquentNotificationRepositoryTest.php 2 locations

@@ 95-103 (lines=9) @@
92
    }
93
94
    /** @test */
95
    public function it_can_get_all_unread_notifications_for_user()
96
    {
97
        $this->createNotification();
98
        $this->createNotification(['is_read' => true]);
99
        $this->createNotification(['is_read' => true]);
100
        $this->createNotification();
101
102
        $this->assertCount(2, $this->notification->allUnreadForUser(1));
103
    }
104
105
    /** @test */
106
    public function it_can_get_all_read_notifications_for_user()
@@ 106-115 (lines=10) @@
103
    }
104
105
    /** @test */
106
    public function it_can_get_all_read_notifications_for_user()
107
    {
108
        $this->createNotification();
109
        $this->createNotification(['is_read' => true]);
110
        $this->createNotification(['is_read' => true]);
111
        $this->createNotification();
112
        $this->createNotification();
113
114
        $this->assertCount(2, $this->notification->allReadForUser(1));
115
    }
116
117
    /** @test */
118
    public function it_can_delete_all_notifications_for_user()