Skip to content

Commit fda9c05

Browse files
committed
fix tests
1 parent 01a2444 commit fda9c05

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

pkg/enqueue-bundle/Tests/Functional/Client/ProducerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ public function setUp()
2525

2626
public function tearDown()
2727
{
28-
parent::tearDown();
29-
3028
static::$container->get(Producer::class)->clearTraces();
29+
30+
parent::tearDown();
3131
}
3232

3333
public function testCouldBeGetFromContainerAsService()

pkg/enqueue-bundle/Tests/Functional/Events/AsyncListenerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ public function setUp()
2323
$asyncListener = static::$container->get('enqueue.events.async_listener');
2424

2525
$asyncListener->resetSyncMode();
26+
static::$container->get('test_async_subscriber')->calls = [];
27+
static::$container->get('test_async_listener')->calls = [];
2628
}
2729

2830
public function testShouldNotCallRealListenerIfMarkedAsAsync()
@@ -54,8 +56,6 @@ public function testShouldSendMessageToExpectedCommandInsteadOfCallingRealListen
5456

5557
$this->assertCount(1, $traces);
5658

57-
var_dump($traces);
58-
5959
$this->assertEquals('symfony_events', $traces[0]['command']);
6060
$this->assertEquals('{"subject":"theSubject","arguments":{"fooArg":"fooVal"}}', $traces[0]['body']);
6161
}

pkg/enqueue-bundle/Tests/Functional/Events/AsyncSubscriberTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ public function setUp()
2323
$asyncListener = static::$container->get('enqueue.events.async_listener');
2424

2525
$asyncListener->resetSyncMode();
26+
static::$container->get('test_async_subscriber')->calls = [];
27+
static::$container->get('test_async_listener')->calls = [];
2628
}
2729

2830
public function testShouldNotCallRealSubscriberIfMarkedAsAsync()
@@ -35,8 +37,6 @@ public function testShouldNotCallRealSubscriberIfMarkedAsAsync()
3537
/** @var TestAsyncListener $listener */
3638
$listener = static::$container->get('test_async_subscriber');
3739

38-
var_dump($listener->calls);
39-
4040
$this->assertEmpty($listener->calls);
4141
}
4242

0 commit comments

Comments
 (0)