public function testWrongColumnNameQuery()
 {
     $migration = new WrongColumnNameMigration();
     $migrations = [$migration];
     $this->setExpectedException('Oro\\Bundle\\MigrationBundle\\Exception\\InvalidNameException', sprintf('Max column name length is %s. Please correct "%s:%s" column in "%s" migration', $this->nameGenerator->getMaxIdentifierSize(), 'wrong_table', 'extra_long_column_bigger_30_chars', get_class($migration)));
     $this->executor->executeUp($migrations);
 }
 public function testWrongColumnNameQuery()
 {
     $migration = new WrongColumnNameMigration();
     $migrations = [new MigrationState($migration)];
     $this->setExpectedException('\\RuntimeException', 'Failed migrations: Oro\\Bundle\\MigrationBundle\\Tests\\Unit\\Fixture\\TestPackage\\WrongColumnNameMigration.');
     $this->executor->executeUp($migrations);
     $this->assertEquals('> Oro\\Bundle\\MigrationBundle\\Tests\\Unit\\Fixture\\TestPackage\\WrongColumnNameMigration', $this->logger->getMessages()[0]);
     $this->assertEquals(sprintf('  ERROR: Max column name length is %s. Please correct "%s:%s" column in "%s" migration', $this->nameGenerator->getMaxIdentifierSize(), 'wrong_table', 'extra_long_column_bigger_30_chars', get_class($migration)), $this->logger->getMessages()[1]);
 }