From 0d8ecb82a32fcb7e87d99316b00c827c8aa71eee Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Sun, 4 Jun 2017 17:57:40 +0200 Subject: [PATCH] Fix review Signed-off-by: Thomas Citharel --- src/Wallabag/CoreBundle/Command/ShowUserCommand.php | 6 +++--- 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 10428c4be..0eeaabc44 100644 --- a/src/Wallabag/CoreBundle/Command/ShowUserCommand.php +++ b/src/Wallabag/CoreBundle/Command/ShowUserCommand.php @@ -53,9 +53,9 @@ class ShowUserCommand extends ContainerAwareCommand $this->output->writeln(sprintf('Username : %s', $user->getUsername())); $this->output->writeln(sprintf('Email : %s', $user->getEmail())); $this->output->writeln(sprintf('Display name : %s', $user->getName())); - $this->output->writeln(sprintf('Creation date : %s', $user->getCreatedAt() !== null ? $user->getCreatedAt()->format('Y-m-d H:i:s') : 'false')); - $this->output->writeln(sprintf('Last login : %s', $user->getLastLogin() !== null ? $user->getLastLogin()->format('Y-m-d H:i:s') : 'false')); - $this->output->writeln(sprintf('2FA activated: %s', $user->isTwoFactorAuthentication() ? 'true' : 'false')); + $this->output->writeln(sprintf('Creation date : %s', $user->getCreatedAt()->format('Y-m-d H:i:s'))); + $this->output->writeln(sprintf('Last login : %s', $user->getLastLogin() !== null ? $user->getLastLogin()->format('Y-m-d H:i:s') : 'never')); + $this->output->writeln(sprintf('2FA activated: %s', $user->isTwoFactorAuthentication() ? 'yes' : 'no')); } /** diff --git a/tests/Wallabag/CoreBundle/Command/ShowUserCommandTest.php b/tests/Wallabag/CoreBundle/Command/ShowUserCommandTest.php index 642327c33..3b928d1e1 100644 --- a/tests/Wallabag/CoreBundle/Command/ShowUserCommandTest.php +++ b/tests/Wallabag/CoreBundle/Command/ShowUserCommandTest.php @@ -61,7 +61,7 @@ class ShowUserCommandTest extends WallabagCoreTestCase $this->assertContains('Username : admin', $tester->getDisplay()); $this->assertContains('Email : bigboss@wallabag.org', $tester->getDisplay()); $this->assertContains('Display name : Big boss', $tester->getDisplay()); - $this->assertContains('2FA activated: false', $tester->getDisplay()); + $this->assertContains('2FA activated: no', $tester->getDisplay()); } public function testShowUser()