Skip to content

Commit

Permalink
[TESTS] some cleanup to make IDE happy
Browse files Browse the repository at this point in the history
  • Loading branch information
pspanja committed Nov 20, 2017
1 parent bb65200 commit 2ab6e5e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/lib/Integration/SetupFactory/Legacy.php
Expand Up @@ -15,9 +15,8 @@ class Legacy extends CoreLegacySetupFactory
{
public function getServiceContainer()
{
if (!isset(self::$serviceContainer)) {
$configPath = __DIR__ . '/../../../../vendor/ezsystems/ezpublish-kernel/config.php';
$config = include $configPath;
if (null === self::$serviceContainer) {
$config = include __DIR__ . '/../../../../vendor/ezsystems/ezpublish-kernel/config.php';
$installDir = $config['install_dir'];
/* @var \Symfony\Component\DependencyInjection\ContainerBuilder $containerBuilder */
$containerBuilder = include $config['container_builder_path'];
Expand Down

0 comments on commit 2ab6e5e

Please sign in to comment.