$this->connectionFactory =
$this->
createMock(DatabaseConnectionFactory::
class);
$this->router =
$this->
createMock(RouterInterface::
class);
$this->controller =
new DatabaseConfigurationController( $this->translator,
$this->blueGreenDeploymentService,
$this->jwtCertificateGenerator,
$this->setupDatabaseAdapter,
$this->connectionFactory,
__DIR__
);
$this->controller->
setContainer($this->
getInstallerContainer($this->twig,
['router' =>
$this->router
]));
} public function testDatabaseGetConfigurationRoute(): void
{ $this->twig->
expects(static::
once())->
method('render'
) ->
with( '@Installer/installer/database-configuration.html.twig',
array_merge($this->
getDefaultViewParams(),
[ 'connectionInfo' =>
new DatabaseConnectionInformation(),
'error' => null,
]) )