diff --git a/spec/Middleware/ExpressiveFactorySpec.php b/spec/Middleware/ExpressiveFactorySpec.php index bb3b155b..35888bbe 100644 --- a/spec/Middleware/ExpressiveFactorySpec.php +++ b/spec/Middleware/ExpressiveFactorySpec.php @@ -252,7 +252,6 @@ $actual = $this->factory($container); expect($actual)->toBeAnInstanceOf(Expressive::class); expect($container->has('ErrorHeroModuleLogger'))->toBeTruthy(); - } }); @@ -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(); } });