Skip to content

Commit 343f8fd

Browse files
committed
try with no property
1 parent 3c2d8ce commit 343f8fd

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

src/Functional/BaseTestCase.php

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
use Symfony\Bundle\FrameworkBundle\Client;
1616
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
1717
use Symfony\Cmf\Component\Testing\Functional\DbManager\PhpcrDecorator;
18-
use Symfony\Component\DependencyInjection\Container;
18+
use Symfony\Component\DependencyInjection\ContainerInterface;
1919
use Symfony\Component\HttpFoundation\Response;
2020

2121
/**
@@ -33,11 +33,6 @@ abstract class BaseTestCase extends WebTestCase
3333
*/
3434
protected $dbManagers = [];
3535

36-
/**
37-
* @var Container
38-
*/
39-
protected $container;
40-
4136
/**
4237
* @var Client
4338
*/
@@ -75,15 +70,11 @@ public function getClient()
7570
/**
7671
* Gets the container.
7772
*
78-
* @return Container
73+
* @return ContainerInterface
7974
*/
8075
public function getContainer()
8176
{
82-
if (null === $this->container) {
83-
$this->container = $this->getClient()->getContainer();
84-
}
85-
86-
return $this->container;
77+
return self::$kernel->getContainer();
8778
}
8879

8980
/**

0 commit comments

Comments
 (0)