Skip to content

Commit 9854ff8

Browse files
author
Alexandre Guidet
committed
fixed the unit tests
1 parent 6190070 commit 9854ff8

4 files changed

Lines changed: 5 additions & 3 deletions

File tree

Migrate/Command/AddEnvCommand.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
namespace Migrate\Command;
99

10+
use Symfony\Component\Config\Definition\Exception\Exception;
1011
use Symfony\Component\Console\Input\InputInterface;
1112
use Symfony\Component\Console\Output\OutputInterface;
1213
use Symfony\Component\Console\Question\ChoiceQuestion;

templates/env.yml.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ connection:
55
username: {USERNAME}
66
password: {PASSWORD}
77
database: {DATABASE}
8-
charset: {CHARSET}
8+
charset: {CHARSET}
99

1010
changelog: {CHANGELOG}
1111
default_editor: {EDITOR}

tests/Command/AbstractCommandTester.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function createEnv()
4747

4848
/* @var $question QuestionHelper */
4949
$question = $command->getHelper('question');
50-
$question->setInputStream(InputStreamUtil::type("testing\n$driverKey\ntest.sqlite\n\n\n\n\nchangelog\nvim\n"));
50+
$question->setInputStream(InputStreamUtil::type("testing\n$driverKey\ntest.sqlite\n\n\n\n\n\nchangelog\nvim\n"));
5151

5252
$commandTester->execute(array('command' => $command->getName()));
5353
}

tests/Command/AddenvCommandTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function testExecute()
4444

4545
/* @var $question QuestionHelper */
4646
$question = $command->getHelper('question');
47-
$question->setInputStream(InputStreamUtil::type("testing\n$driverKey\nmigrate_test\nlocalhost\n5432\naguidet\naguidet\nchangelog\nvim\n"));
47+
$question->setInputStream(InputStreamUtil::type("testing\n$driverKey\nmigrate_test\nlocalhost\n5432\naguidet\naguidet\nutf8\nchangelog\nvim\n"));
4848

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

@@ -62,6 +62,7 @@ public function testExecute()
6262
username: aguidet
6363
password: aguidet
6464
database: migrate_test
65+
charset: utf8
6566
6667
changelog: changelog
6768
default_editor: vim

0 commit comments

Comments
 (0)