/** @test */ function it_delete_all_the_notification_of_the_given_entity() { $this->createMultipleNotifications(); $deleted = $this->notificationRepo->deleteAll($this->to['id'], $this->to['type']); $this->assertEquals(10, $deleted); $this->assertCount(0, Notification::all()); }