function let(MageApp $app, MageStore $mageStore)
 {
     $mageStore->getConfig($this->storeConfigKey)->willReturn('some_value');
     $app->getStore()->willReturn($mageStore);
     $services = ['app' => $app];
     $this->beConstructedWith($services);
 }
 function it_memoizes_the_container(MageApp $app, Configuration $generatorConfig, StoreConfigCompilerPass $configCompilerPass, InjectableCompilerPass $injectableCompilerPass)
 {
     $generatorConfig->addCompilerPass($configCompilerPass)->shouldBeCalledTimes(1);
     $generatorConfig->addCompilerPass($injectableCompilerPass)->shouldBeCalledTimes(1);
     $app->dispatchEvent('symfony_container_before_container_generator', ['generator_config' => $generatorConfig])->shouldBeCalled();
     $container = $this->getContainer();
     $this->getContainer()->shouldBe($container);
 }
 function it_builds_a_generator_configuration_without_mage_cache(MageApp $app)
 {
     $app->useCache(\Inviqa_SymfonyContainer_Model_ConfigurationBuilder::MODEL_ALIAS)->willReturn(false);
     $configuration = $this->build();
     $configuration->getDebug()->shouldBe(true);
 }