Remove useless command input parameter

This commit is contained in:
Yassine Guedidi
2022-09-03 02:28:07 +02:00
committed by Jérémy Benoist
parent 17497275b2
commit e32794e9d6
10 changed files with 15 additions and 74 deletions

View File

@ -21,9 +21,7 @@ class ShowUserCommandTest extends WallabagCoreTestCase
$command = $application->find('wallabag:user:show');
$tester = new CommandTester($command);
$tester->execute([
'command' => $command->getName(),
]);
$tester->execute([]);
}
public function testRunShowUserCommandWithBadUsername()
@ -34,7 +32,6 @@ class ShowUserCommandTest extends WallabagCoreTestCase
$tester = new CommandTester($command);
$tester->execute([
'command' => $command->getName(),
'username' => 'unknown',
]);
@ -49,7 +46,6 @@ class ShowUserCommandTest extends WallabagCoreTestCase
$tester = new CommandTester($command);
$tester->execute([
'command' => $command->getName(),
'username' => 'admin',
]);
@ -81,7 +77,6 @@ class ShowUserCommandTest extends WallabagCoreTestCase
$tester = new CommandTester($command);
$tester->execute([
'command' => $command->getName(),
'username' => 'admin',
]);