public function test_Should_GetServersByPage() { Factory::createList('App\\Models\\Server', [['name' => 'Server 1', 'description' => '', 'body' => ''], ['name' => 'Server 2', 'description' => '', 'body' => ''], ['name' => 'Server 3', 'description' => '', 'body' => ''], ['name' => 'Server 4', 'description' => '', 'body' => ''], ['name' => 'Server 5', 'description' => '', 'body' => '']]); $serverRepository = new EloquentServer(new App\Models\Server()); $foundServers = $serverRepository->byPage(); $this->assertCount(5, $foundServers->items()); }