use Symfony\Component\Console\Input\ArrayInput;
use Symfony\Component\Console\Output\NullOutput;
use Symfony\Component\Console\Tester\CommandTester;
-use Wallabag\CoreBundle\Command\InstallCommand;
use Tests\Wallabag\CoreBundle\Mock\InstallCommandMock;
use Tests\Wallabag\CoreBundle\WallabagCoreTestCase;
+use Wallabag\CoreBundle\Command\InstallCommand;
class InstallCommandTest extends WallabagCoreTestCase
{
$tester->setInputs([
'y', // dropping database
'y', // create super admin
- 'username_'.uniqid('', true), // username
- 'password_'.uniqid('', true), // password
- 'email_'.uniqid('', true).'@wallabag.it', // email
+ 'username_' . uniqid('', true), // username
+ 'password_' . uniqid('', true), // password
+ 'email_' . uniqid('', true) . '@wallabag.it', // email
]);
$tester->execute([
'command' => $command->getName(),
$tester = new CommandTester($command);
$tester->setInputs([
'y', // create super admin
- 'username_'.uniqid('', true), // username
- 'password_'.uniqid('', true), // password
- 'email_'.uniqid('', true).'@wallabag.it', // email
+ 'username_' . uniqid('', true), // username
+ 'password_' . uniqid('', true), // password
+ 'email_' . uniqid('', true) . '@wallabag.it', // email
]);
$tester->execute([
'command' => $command->getName(),
$tester = new CommandTester($command);
$tester->setInputs([
'y', // create super admin
- 'username_'.uniqid('', true), // username
- 'password_'.uniqid('', true), // password
- 'email_'.uniqid('', true).'@wallabag.it', // email
+ 'username_' . uniqid('', true), // username
+ 'password_' . uniqid('', true), // password
+ 'email_' . uniqid('', true) . '@wallabag.it', // email
]);
$tester->execute([
'command' => $command->getName(),