/** * @test */ public function it_get_paginated_notifications_of_the_current_user() { $this->createMultipleNotifications(); $this->createMultipleNotifications(); $this->createMultipleNotifications(); $notifications = $this->user->getNotifications(5, true); $this->assertSame(3 * $this->multiNotificationsNumber, $notifications->total()); $this->assertCount(5, $notifications); }
/** * Get all notifications * * @method getNotifications * @test */ function it_get_all_notification_of_the_current_user() { $this->createMultipleNotifications(); $notifications = $this->user->getNotifications(); $this->assertCount(10, $notifications); }