Skip to content

Commit 5d3d197

Browse files
committed
fix tests
1 parent 922b26c commit 5d3d197

File tree

3 files changed

+1
-19
lines changed

3 files changed

+1
-19
lines changed

pkg/enqueue-bundle/Tests/Functional/App/CustomAppKernel.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class CustomAppKernel extends Kernel
2727
],
2828
];
2929

30-
public function setEnqueueConfig(array $config)
30+
public function setEnqueueConfig(array $config): void
3131
{
3232
$this->enqueueConfig = array_replace_recursive($this->enqueueConfig, $config);
3333
$this->enqueueConfig['default']['client']['app_name'] = str_replace('.', '', uniqid('app_name', true));

pkg/enqueue-bundle/Tests/Functional/LazyProducerTest.php

-12
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
use Enqueue\Bundle\Tests\Functional\App\CustomAppKernel;
66
use Enqueue\Symfony\Client\LazyProducer;
7-
use Symfony\Component\Filesystem\Filesystem;
87

98
/**
109
* @group functional
@@ -17,17 +16,6 @@ protected function setUp(): void
1716
// parent::setUp();
1817
}
1918

20-
protected function tearDown(): void
21-
{
22-
if (static::$kernel) {
23-
$fs = new Filesystem();
24-
$fs->remove(static::$kernel->getLogDir());
25-
$fs->remove(static::$kernel->getCacheDir());
26-
}
27-
28-
parent::tearDown();
29-
}
30-
3119
public function testShouldAllowGetLazyProducerWithoutError()
3220
{
3321
$this->customSetUp([

pkg/enqueue-bundle/Tests/Functional/UseCasesTest.php

-6
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,6 @@ protected function tearDown(): void
3232
$this->getContext()->close();
3333
}
3434

35-
if (static::$kernel) {
36-
$fs = new Filesystem();
37-
$fs->remove(static::$kernel->getLogDir());
38-
$fs->remove(static::$kernel->getCacheDir());
39-
}
40-
4135
parent::tearDown();
4236
}
4337

0 commit comments

Comments
 (0)