Skip to content

Commit 379cb40

Browse files
committed
Fix failing test by reverting custom WebClient handling
Alternative to #125
1 parent fd7b222 commit 379cb40

File tree

2 files changed

+4
-15
lines changed

2 files changed

+4
-15
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ matrix:
1818
fast_finish: true
1919
include:
2020
- php: 7.2
21-
env: SYMFONY_VERSION=4.1.13
21+
env: SYMFONY_VERSION=4.1
2222
- php: 7.2
2323
env: COMPOSER_FLAGS="--prefer-lowest"
2424
- php: 7.3

tests/Functional/Adapter/Doctrine/ORMAdapterEventsTest.php

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -24,27 +24,16 @@
2424
*/
2525
class ORMAdapterEventsTest extends WebTestCase
2626
{
27-
/** @var Client */
28-
private $client;
29-
30-
protected function setUp(): void
31-
{
32-
$this->client = static::createClient();
33-
}
34-
3527
public function testPreQueryEvent()
3628
{
29+
$client = self::createClient();
30+
3731
/** @var DoctrineProvider $doctrineProvider */
3832
$doctrineProvider = self::$kernel->getContainer()->get('doctrine')->getManager()->getConfiguration()->getResultCacheImpl();
3933
$doctrineProvider->delete(ORMAdapterEventsController::PRE_QUERY_RESULT_CACHE_ID);
4034

41-
$this->client->request('POST', '/orm-adapter-events/pre-query', ['_dt' => 'dt', '_init' => true]);
35+
$client->request('POST', '/orm-adapter-events/pre-query', ['_dt' => 'dt', '_init' => true]);
4236

4337
static::assertTrue($doctrineProvider->contains(ORMAdapterEventsController::PRE_QUERY_RESULT_CACHE_ID));
4438
}
45-
46-
protected function tearDown(): void
47-
{
48-
$this->client = null;
49-
}
5039
}

0 commit comments

Comments
 (0)