public function testUpdate()
{
$this->allowLogin($this->getApp());
$checkResponse = new SchemaCheck();
$check = $this->getMockSchemaManager(['update']);
$check->expects($this->any())->method('update')->will($this->returnValue($checkResponse));
$this->setService('schema', $check);
ResourceManager::$theApp = $this->getApp();
$this->setRequest(Request::create('/bolt/dbupdate', 'POST'));
$response = $this->controller()->update($this->getRequest());
$this->assertEquals(Response::HTTP_FOUND, $response->getStatusCode());
$this->assertEquals('/bolt/dbupdate_result', $response->getTargetUrl());
}