/** @test */ function it_read_limit_the_number_of_notifications_of_the_given_entity() { $this->createMultipleNotifications(); $readFive = $this->notificationRepo->readLimit($this->to['id'], $this->to['type'], 5, 'asc'); $notificationsRead = Notification::whereRead(1)->get(); $this->assertEquals(5, $readFive); $this->assertCount(5, $notificationsRead); }