unset( $_SERVER[BlueGreenDeploymentService::ENV_NAME
],
$_ENV[BlueGreenDeploymentService::ENV_NAME
],
$_SERVER[MigrationStep::INSTALL_ENVIRONMENT_VARIABLE
],
$_ENV[MigrationStep::INSTALL_ENVIRONMENT_VARIABLE
],
);
} public function testImportDatabaseRedirectsToConfigPageWhenDatabaseConnectionWasNotConfigured(): void
{ $this->twig->
expects(static::
never()) ->
method('render'
);
$this->router->
expects(static::
once())->
method('generate'
) ->
with('installer.database-configuration',
[], UrlGeneratorInterface::ABSOLUTE_PATH
) ->
willReturn('/installer/database-configuration'
);
$session =
new Session(new MockArraySessionStorage());
$request = Request::
create('/installer/database-import'
);
$request->
setSession($session);
$response =
$this->controller->
databaseImport($request);