Skip to content

Commit

Permalink
test expect ErrorHeroModuleLogger created during factory invoke for u…
Browse files Browse the repository at this point in the history
…sage of Doctrine\ORM\EntityManager service with servicemanager container
  • Loading branch information
samsonasik committed Jun 6, 2018
1 parent e72f031 commit 241c3ec
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions spec/Middleware/ExpressiveFactorySpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,11 @@
allow($container)->toReceive('get')->with(TemplateRendererInterface::class)
->andReturn($renderer);

expect($container->has('ErrorHeroModuleLogger'))->toBeFalsy();
$actual = $this->factory($container);
expect($actual)->toBeAnInstanceOf(Expressive::class);
expect($container->has('ErrorHeroModuleLogger'))->toBeTruthy();


});

Expand Down

0 comments on commit 241c3ec

Please sign in to comment.