Skip to content

Commit 665891d

Browse files
committed
fix tests
1 parent a384839 commit 665891d

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

‎pkg/enqueue-bundle/Tests/Functional/WebTestCase.php‎

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,21 @@ protected function setUp()
2525
parent::setUp();
2626

2727
static::$class = null;
28-
2928
static::$client = static::createClient();
30-
31-
if (false == static::$container) {
32-
static::$container = static::$kernel->getContainer();
33-
}
29+
static::$container = static::$kernel->getContainer();
3430

3531
/** @var TraceableProducer $producer */
3632
$producer = static::$container->get('test_enqueue.client.default.traceable_producer');
3733
$producer->clearTraces();
3834
}
3935

36+
protected function tearDown()
37+
{
38+
static::$client = null;
39+
static::$kernel = null;
40+
static::$container = null;
41+
}
42+
4043
/**
4144
* @return string
4245
*/

0 commit comments

Comments
 (0)