Skip to content

Commit

Permalink
Fix failing test by reverting custom WebClient handling
Browse files Browse the repository at this point in the history
Alternative to #125
  • Loading branch information
curry684 committed Feb 21, 2020
1 parent fd7b222 commit 379cb40
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ matrix:
fast_finish: true
include:
- php: 7.2
env: SYMFONY_VERSION=4.1.13
env: SYMFONY_VERSION=4.1
- php: 7.2
env: COMPOSER_FLAGS="--prefer-lowest"
- php: 7.3
Expand Down
17 changes: 3 additions & 14 deletions tests/Functional/Adapter/Doctrine/ORMAdapterEventsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,27 +24,16 @@
*/
class ORMAdapterEventsTest extends WebTestCase
{
/** @var Client */
private $client;

protected function setUp(): void
{
$this->client = static::createClient();
}

public function testPreQueryEvent()
{
$client = self::createClient();

/** @var DoctrineProvider $doctrineProvider */
$doctrineProvider = self::$kernel->getContainer()->get('doctrine')->getManager()->getConfiguration()->getResultCacheImpl();
$doctrineProvider->delete(ORMAdapterEventsController::PRE_QUERY_RESULT_CACHE_ID);

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

static::assertTrue($doctrineProvider->contains(ORMAdapterEventsController::PRE_QUERY_RESULT_CACHE_ID));
}

protected function tearDown(): void
{
$this->client = null;
}
}

0 comments on commit 379cb40

Please sign in to comment.