public function testKernelParameters(): void
{ $plugin =
$this->
getInstalledInactivePlugin();
$this->
insertPlugin($plugin);
$loader =
new DbalKernelPluginLoader($this->classLoader, null,
$this->connection
);
$this->kernel =
$this->
makeKernel($loader);
$this->kernel->
boot();
$expectedParameters =
[ 'kernel.shopware_version' => self::
getTestVersion(),
'kernel.shopware_version_revision' => self::
getTestRevision(),
'kernel.project_dir' => TEST_PROJECT_DIR,
'kernel.plugin_dir' => TEST_PROJECT_DIR . '/custom/plugins',
];
$actualParameters =
[];
foreach ($expectedParameters as $key =>
$_value) { $actualParameters[$key] =
$this->kernel->
getContainer()->
getParameter($key);
} static::
assertSame($expectedParameters,
$actualParameters);