Exemplo n.º 1
0
 public function testCheckConfigWhenItIsAlreadyUpToDate()
 {
     $this->configProvider->addEntityConfig(self::CLASS_NAMESPACE . '\\Entity\\TestEntity1', ['schema' => ['class' => self::CLASS_NAMESPACE . '\\Entity\\TestEntity1', 'entity' => self::CLASS_NAMESPACE . '\\cache\\EX_OroEntityConfigBundle_Entity1', 'type' => 'Extend', 'parent' => self::CLASS_NAMESPACE . '\\Model\\ExtendEntity1', 'inherit' => false]]);
     $this->configProvider->addEntityConfig(self::CLASS_NAMESPACE . '\\Entity\\TestEntity2', ['schema' => ['class' => self::CLASS_NAMESPACE . '\\Entity\\TestEntity2', 'entity' => self::CLASS_NAMESPACE . '\\cache\\EX_OroEntityConfigBundle_Entity2', 'type' => 'Extend', 'parent' => self::CLASS_NAMESPACE . '\\Model\\ExtendEntity2', 'inherit' => self::CLASS_NAMESPACE . '\\TestAbstractClass']], true);
     $this->configManager->expects($this->never())->method('persist');
     $this->configManager->expects($this->never())->method('flush');
     $this->dumper->setCacheDir($this->cacheDir . '_other');
     $this->dumper->checkConfig();
 }
 /**
  * {inheritdoc}
  */
 public function warmUp($cacheDir)
 {
     $this->dumper->dump();
 }
Exemplo n.º 3
0
 /**
  * {@inheritdoc}
  */
 public function warmUp($cacheDir)
 {
     $this->configManager->flushAllCaches();
     $this->configCacheWarmer->warmUpCache(ConfigCacheWarmer::MODE_CONFIGURABLE_ENTITY_ONLY);
     $this->dumper->dump();
 }
Exemplo n.º 4
0
 /**
  * {@inheritdoc}
  */
 public function warmUp($cacheDir)
 {
     $this->configManager->clearCache();
     $this->configManager->clearConfigurableCache();
     $this->dumper->dump();
 }