public function test_Should_DisplayIndexPage_When_IndexPageIsRequested()
{
$servers = Factory::buildList('App\\Models\\Server', [['id' => 1, 'name' => 'Server 1', 'description' => '', 'body' => '', 'created_at' => new Carbon\Carbon(), 'updated_at' => new Carbon\Carbon()], ['id' => 2, 'name' => 'Server 2', 'description' => '', 'body' => '', 'created_at' => new Carbon\Carbon(), 'updated_at' => new Carbon\Carbon()], ['id' => 3, 'name' => 'Server 3', 'description' => '', 'body' => '', 'created_at' => new Carbon\Carbon(), 'updated_at' => new Carbon\Carbon()]]);
$perPage = 10;
$this->mockServerRepository->shouldReceive('byPage')->once()->andReturn(new Illuminate\Pagination\Paginator($servers, $perPage));
$this->get('servers');
$this->assertResponseOk();
$this->assertViewHas('servers');
}