Exemplo n.º 1
0
 /**
  * @Given the store has :themeName theme
  */
 public function storeHasTheme($themeName)
 {
     $this->testThemeConfigurationManager->add(['name' => $themeName]);
     $this->sharedStorage->set('theme', $this->themeRepository->findOneByName($themeName));
 }
 /**
  * {@inheritdoc}
  */
 public function getConfigurations()
 {
     return $this->testThemeConfigurationManager->findAll();
 }
 function it_provides_configuration_based_on_test_configuration_manager(TestThemeConfigurationManagerInterface $testThemeConfigurationManager)
 {
     $testThemeConfigurationManager->findAll()->willReturn([['name' => 'theme/name']]);
     $this->getConfigurations()->shouldReturn([['name' => 'theme/name']]);
 }
Exemplo n.º 4
0
 /**
  * @BeforeScenario
  */
 public function purgeTestThemes()
 {
     $this->testThemeConfigurationManager->clear();
 }