diff options
-rw-r--r-- | src/Wallabag/CoreBundle/Command/ShowUserCommand.php | 6 | ||||
-rw-r--r-- | tests/Wallabag/CoreBundle/Command/ShowUserCommandTest.php | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/Wallabag/CoreBundle/Command/ShowUserCommand.php b/src/Wallabag/CoreBundle/Command/ShowUserCommand.php index 10428c4b..0eeaabc4 100644 --- a/src/Wallabag/CoreBundle/Command/ShowUserCommand.php +++ b/src/Wallabag/CoreBundle/Command/ShowUserCommand.php | |||
@@ -53,9 +53,9 @@ class ShowUserCommand extends ContainerAwareCommand | |||
53 | $this->output->writeln(sprintf('Username : %s', $user->getUsername())); | 53 | $this->output->writeln(sprintf('Username : %s', $user->getUsername())); |
54 | $this->output->writeln(sprintf('Email : %s', $user->getEmail())); | 54 | $this->output->writeln(sprintf('Email : %s', $user->getEmail())); |
55 | $this->output->writeln(sprintf('Display name : %s', $user->getName())); | 55 | $this->output->writeln(sprintf('Display name : %s', $user->getName())); |
56 | $this->output->writeln(sprintf('Creation date : %s', $user->getCreatedAt() !== null ? $user->getCreatedAt()->format('Y-m-d H:i:s') : 'false')); | 56 | $this->output->writeln(sprintf('Creation date : %s', $user->getCreatedAt()->format('Y-m-d H:i:s'))); |
57 | $this->output->writeln(sprintf('Last login : %s', $user->getLastLogin() !== null ? $user->getLastLogin()->format('Y-m-d H:i:s') : 'false')); | 57 | $this->output->writeln(sprintf('Last login : %s', $user->getLastLogin() !== null ? $user->getLastLogin()->format('Y-m-d H:i:s') : 'never')); |
58 | $this->output->writeln(sprintf('2FA activated: %s', $user->isTwoFactorAuthentication() ? 'true' : 'false')); | 58 | $this->output->writeln(sprintf('2FA activated: %s', $user->isTwoFactorAuthentication() ? 'yes' : 'no')); |
59 | } | 59 | } |
60 | 60 | ||
61 | /** | 61 | /** |
diff --git a/tests/Wallabag/CoreBundle/Command/ShowUserCommandTest.php b/tests/Wallabag/CoreBundle/Command/ShowUserCommandTest.php index 642327c3..3b928d1e 100644 --- a/tests/Wallabag/CoreBundle/Command/ShowUserCommandTest.php +++ b/tests/Wallabag/CoreBundle/Command/ShowUserCommandTest.php | |||
@@ -61,7 +61,7 @@ class ShowUserCommandTest extends WallabagCoreTestCase | |||
61 | $this->assertContains('Username : admin', $tester->getDisplay()); | 61 | $this->assertContains('Username : admin', $tester->getDisplay()); |
62 | $this->assertContains('Email : bigboss@wallabag.org', $tester->getDisplay()); | 62 | $this->assertContains('Email : bigboss@wallabag.org', $tester->getDisplay()); |
63 | $this->assertContains('Display name : Big boss', $tester->getDisplay()); | 63 | $this->assertContains('Display name : Big boss', $tester->getDisplay()); |
64 | $this->assertContains('2FA activated: false', $tester->getDisplay()); | 64 | $this->assertContains('2FA activated: no', $tester->getDisplay()); |
65 | } | 65 | } |
66 | 66 | ||
67 | public function testShowUser() | 67 | public function testShowUser() |