public function testBeforeHandlerForFirstUser()
{
$this->setRequest(Request::create('/'));
$users = $this->getMockUsers();
$users->expects($this->once())->method('getUsers')->will($this->returnValue(false));
$this->setService('users', $users);
$response = $this->controller()->before($this->getRequest());
$this->assertInstanceOf('Symfony\\Component\\HttpFoundation\\RedirectResponse', $response);
$this->assertEquals('/bolt/userfirst', $response->getTargetUrl());
}