Skip to content

Commit

Permalink
test expect ErrorHeroModuleLogger created during factory invoke for n…
Browse files Browse the repository at this point in the history
…on-servicemanager container
  • Loading branch information
samsonasik committed Jun 6, 2018
1 parent 6976d5b commit a024af5
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 @@ -248,8 +248,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 a024af5

Please sign in to comment.