public function testFindAll() { Sentry::shouldReceive('findAllUsers')->once()->andReturn(array()); $this->assertEquals(array(), $this->users->findAll()); }
/** * Display all users. * * @return Response */ public function index() { $users = $this->users->findAll(); return View::make('laravel-sentry-backend::users.index', compact('users')); }