/** * @test */ public function checkColumnDefinitionIfNoCommentIsSupplied() { $subject = new SqlSchemaMigrationService(); $fieldDefinition = $subject->assembleFieldDefinition(array('Field' => 'uid', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => 'PRI', 'Default' => NULL, 'Extra' => 'auto_increment')); $this->assertSame('int(11) NOT NULL auto_increment', $fieldDefinition); }