Skip to content

Commit 4a2a2e9

Browse files
committed
fix job-queue web test case.
1 parent 297a2eb commit 4a2a2e9

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

pkg/job-queue/Tests/Functional/WebTestCase.php

+5-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ abstract class WebTestCase extends BaseWebTestCase
1616
/**
1717
* @var ContainerInterface
1818
*/
19-
protected $container;
19+
protected static $container;
2020

2121
protected function setUp()
2222
{
@@ -25,7 +25,10 @@ protected function setUp()
2525
static::$class = null;
2626

2727
$this->client = static::createClient();
28-
$this->container = static::$kernel->getContainer();
28+
29+
if (false == static::$container) {
30+
static::$container = static::$kernel->getContainer();
31+
}
2932

3033
$this->startTransaction();
3134
}

0 commit comments

Comments
 (0)