示例#1
0
 /**
  * {@inheritdoc}
  */
 public function getDescription()
 {
     $logger = new ArrayLogger();
     $logger->info('Move integration settings from flat separated fields to serialized single field');
     $this->doExecute($logger, true);
     return $logger->getMessages();
 }
 public function getDescription()
 {
     $logger = new ArrayLogger();
     $logger->info('Convert columns with "json_array(text)" type to "json_array" type on PostgreSQL >= 9.2 and Doctrine 2.5');
     $this->doExecute($logger, true);
     return $logger->getMessages();
 }
示例#3
0
 /**
  * {@inheritdoc}
  */
 public function getDescription()
 {
     $logger = new ArrayLogger();
     $logger->notice('Retrieve existing option sets');
     $this->execute($logger);
     return $logger->getMessages();
 }
 /**
  * {@inheritdoc}
  */
 public function getDescription()
 {
     $logger = new ArrayLogger();
     $logger->info(sprintf('Set entity "%s" config value "%s" for field "%s" in scope "%s" to "%s"', $this->entityName, $this->code, $this->fieldName, $this->scope, var_export($this->value, true)));
     $this->updateFieldConfig($logger, true);
     return $logger->getMessages();
 }
 /**
  * {@inheritdoc}
  */
 public function getDescription()
 {
     $logger = new ArrayLogger();
     $logger->info('Drop unused extend config field values');
     $this->doExecute($logger, true);
     return $logger->getMessages();
 }
 public function testExecute()
 {
     $logger = new ArrayLogger();
     $optionsPath = realpath(__DIR__ . '/../Fixtures') . '/test_options.yml';
     $options = ['test'];
     $this->commandExecutor->expects($this->once())->method('runCommand')->with('oro:entity-extend:migration:update-config', [])->will($this->returnCallback(function ($command, $params, $logger) {
         if ($logger instanceof ArrayLogger) {
             $logger->notice('test message');
         }
         return 0;
     }));
     $migrationQuery = new UpdateExtendConfigMigrationQuery($options, $this->commandExecutor, $optionsPath);
     $migrationQuery->execute($logger);
     $this->assertEquals(['test message'], $logger->getMessages());
 }