]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Fix review 3179/head
authorThomas Citharel <tcit@tcit.fr>
Sun, 4 Jun 2017 15:57:40 +0000 (17:57 +0200)
committerThomas Citharel <tcit@tcit.fr>
Sun, 4 Jun 2017 15:57:40 +0000 (17:57 +0200)
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
src/Wallabag/CoreBundle/Command/ShowUserCommand.php
tests/Wallabag/CoreBundle/Command/ShowUserCommandTest.php

index 10428c4be8674266a2c6069f55e688eefb5d2175..0eeaabc443867b8a085a9a0df41930cfb5665f12 100644 (file)
@@ -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'));
     }
 
     /**
index 642327c335330b3528f5c1d250da1b68302abbbe..3b928d1e17be11290a13c5d3ca4c0684f96b2747 100644 (file)
@@ -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()