Code Duplication    Length = 19-19 lines in 2 locations

Tests/EloquentNotificationRepositoryTest.php 2 locations

@@ 41-59 (lines=19) @@
38
    }
39
40
    /** @test */
41
    public function it_can_fetch_latest_notification_for_user()
42
    {
43
        $this->createNotification();
44
        $this->createNotification();
45
        $this->createNotification();
46
        $this->createNotification();
47
        $this->createNotification();
48
        $this->createNotification();
49
        $this->createNotification();
50
        $this->createNotification();
51
        $this->createNotification();
52
        $this->createNotification();
53
        $this->createNotification();
54
        $this->createNotification(['user_id' => 2]);
55
        $this->createNotification(['user_id' => 2]);
56
57
        $this->assertCount(10, $this->notification->latestForUser(1));
58
        $this->assertCount(2, $this->notification->latestForUser(2));
59
    }
60
61
    /** @test */
62
    public function it_can_get_all_notifications_for_user()
@@ 62-80 (lines=19) @@
59
    }
60
61
    /** @test */
62
    public function it_can_get_all_notifications_for_user()
63
    {
64
        $this->createNotification();
65
        $this->createNotification();
66
        $this->createNotification();
67
        $this->createNotification();
68
        $this->createNotification();
69
        $this->createNotification();
70
        $this->createNotification();
71
        $this->createNotification();
72
        $this->createNotification();
73
        $this->createNotification();
74
        $this->createNotification();
75
        $this->createNotification(['user_id' => 2]);
76
        $this->createNotification(['user_id' => 2]);
77
78
        $this->assertCount(11, $this->notification->allForUser(1));
79
        $this->assertCount(2, $this->notification->allForUser(2));
80
    }
81
82
    /** @test */
83
    public function it_can_mark_a_notification_as_read()