Skip to content

Commit

Permalink
Fix CI when testing with Symfony 5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-grekas committed May 4, 2020
1 parent b0e0deb commit 42251a5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Tests/DependencyInjection/AbstractDoctrineExtensionTest.php
Expand Up @@ -643,8 +643,7 @@ public function testResolveTargetEntity() : void

$definition = $container->getDefinition('doctrine.orm.listeners.resolve_target_entity');
$this->assertDICDefinitionMethodCallOnce($definition, 'addResolveTargetEntity', ['Symfony\Component\Security\Core\User\UserInterface', 'MyUserClass', []]);

$this->assertEquals(['doctrine.event_subscriber' => [[]]], $definition->getTags());
$this->assertSame([ [] ], $definition->getTags()['doctrine.event_subscriber']);
}

public function testAttachEntityListeners() : void
Expand All @@ -655,7 +654,7 @@ public function testAttachEntityListeners() : void
$methodCalls = $definition->getMethodCalls();

$this->assertDICDefinitionMethodCallCount($definition, 'addEntityListener', [], 6);
$this->assertEquals(['doctrine.event_listener' => [ ['event' => 'loadClassMetadata'] ] ], $definition->getTags());
$this->assertSame([ ['event' => 'loadClassMetadata'] ], $definition->getTags()['doctrine.event_subscriber']);

$this->assertEquals($methodCalls[0], [
'addEntityListener',
Expand Down

0 comments on commit 42251a5

Please sign in to comment.