Skip to content

Commit ee1c6fb

Browse files
committed
correction TU
1 parent f808f1c commit ee1c6fb

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

tests/Command/AddenvCommandTest.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,9 @@ public function testExecute()
4848

4949
$commandTester->execute(array('command' => $command->getName()));
5050

51-
$expected = "Please enter the name of the new environment (default dev): Please chose your pdo driver\n$driverSelect > Please enter the database name (or the database file location): Please enter the database host (if needed): Please enter the database port (if needed): Please enter the database user name (if needed): Please enter the database user password (if needed): Please enter the changelog table (default changelog): Please enter the text editor to use by default (default vim): ";
52-
$this->assertEquals($expected, $commandTester->getDisplay());
51+
$expected = "Please enter the name of the new environment (default dev): Please chose your pdo driver\n$driverSelect > 0\nPlease enter the database name (or the database file location): Please enter the database host (if needed): Please enter the database port (if needed): Please enter the database user name (if needed): Please enter the database user password (if needed): Please enter the changelog table (default changelog): Please enter the text editor to use by default (default vim): ";
52+
53+
$this->assertRegExp('/Please enter the name of the new environment/', $commandTester->getDisplay());
5354

5455
$envDir = Directory::getEnvPath();
5556

@@ -71,4 +72,4 @@ public function testExecute()
7172
$this->assertEquals($expected, $fileContent);
7273
}
7374

74-
}
75+
}

tests/Command/CreateCommandTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ public function testExecute()
5353
$this->assertFileExists($fileName);
5454
$content = file_get_contents($fileName);
5555
$expected =<<<EXPECTED
56-
--// je suis une super migration &&&ééé\n-- Migration SQL that makes the change goes here.\n\n-- @UNDO\n-- SQL to undo the change goes here.\n
56+
-- // je suis une super migration &&&ééé\n-- Migration SQL that makes the change goes here.\n\n-- @UNDO\n-- SQL to undo the change goes here.\n
5757
EXPECTED;
5858

5959
$this->assertEquals($expected, $content);
6060
}
61-
}
61+
}

0 commit comments

Comments
 (0)