Skip to content

Commit 24c3f6a

Browse files
committed
fix test
1 parent 8305ee0 commit 24c3f6a

File tree

1 file changed

+3
-18
lines changed

1 file changed

+3
-18
lines changed

pkg/enqueue-bundle/Tests/Unit/DependencyInjection/EnqueueExtensionTest.php

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -445,25 +445,10 @@ public function testShouldAddJobQueueEntityMapping()
445445

446446
$extension->prepend($container);
447447

448-
$expectedConfig = [
449-
[
450-
'orm' => [
451-
'mappings' => [
452-
'enqueue_job_queue' => [
453-
'is_bundle' => false,
454-
'type' => 'xml',
455-
'dir' => '/mqdev/pkg/job-queue/Doctrine/mapping',
456-
'prefix' => 'Enqueue\JobQueue\Doctrine\Entity',
457-
],
458-
],
459-
],
460-
],
461-
[
462-
'dbal' => true,
463-
],
464-
];
448+
$config = $container->getExtensionConfig('doctrine');
465449

466-
$this->assertSame($expectedConfig, $container->getExtensionConfig('doctrine'));
450+
$this->assertSame(['dbal' => true], $config[1]);
451+
$this->assertNotEmpty($config[0]['orm']['mappings']['enqueue_job_queue']);
467452
}
468453

469454
public function testShouldNotAddJobQueueEntityMappingIfDoctrineBundleIsNotRegistered()

0 commit comments

Comments
 (0)