'error' => null,
]) ) ->
willReturn('config'
);
$this->connectionFactory->
expects(static::
never())->
method('getConnection'
);
$request = Request::
create('/installer/database-configuration'
);
$session =
new Session(new MockArraySessionStorage());
$request->
setSession($session);
$response =
$this->controller->
databaseConfiguration($request);
static::
assertSame('config',
$response->
getContent());
static::
assertFalse($session->
has(DatabaseConnectionInformation::
class));
} public function testDatabaseGetConfigurationRoutePostWithEmptyExistingDB(): void
{ $connection =
$this->
createMock(Connection::
class);
$this->connectionFactory->
expects(static::
once()) ->
method('getConnection'
)