readLimit() public method

Read notifications in base the number Given.
public readLimit ( $toId, $entity, $numbers, $order ) : integer
$toId
$entity
$numbers
$order
return integer
 /** @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);
 }