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 a024af5 commit e72f031
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spec/Middleware/ExpressiveFactorySpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,6 @@
$actual = $this->factory($container);
expect($actual)->toBeAnInstanceOf(Expressive::class);
expect($container->has('ErrorHeroModuleLogger'))->toBeTruthy();

}

});
Expand All @@ -274,8 +273,10 @@
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 e72f031

Please sign in to comment.