Skip to content

Commit

Permalink
Merge pull request #33275 from owncloud/stable10-adjust-has-never-log…
Browse files Browse the repository at this point in the history
…ged-in-text

[stable10] adjust 'has never logged in' text
  • Loading branch information
individual-it authored Oct 24, 2018
2 parents 2bd4a88 + 48b2e52 commit 453a1f1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion core/Command/User/LastSeen.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ protected function execute(InputInterface $input, OutputInterface $output) {
$lastLogin = $user->getLastLogin();
if ($lastLogin === 0) {
$output->writeln('User ' . $user->getUID() .
' has never logged in, yet.');
' has never logged in.');
} else {
$date = new \DateTime();
$date->setTimestamp($lastLogin);
Expand Down
2 changes: 1 addition & 1 deletion tests/acceptance/features/bootstrap/OccContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ public function theCommandOutputOfUserLastSeenShouldBeRecently() {
public function theCommandOutputOfUserLastSeenShouldBeNever() {
$lastOutput = $this->featureContext->getStdOutOfOccCommand();
PHPUnit_Framework_Assert::assertContains(
"has never logged in, yet.",
"has never logged in.",
$lastOutput
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Feature: get user last seen
As an admin
I want to be able get user last seen
So that I can see when the user has last logged in the owncloud server
So that I can see when the user has last logged in to the owncloud server

Scenario: admin gets last seen of a user
Given user "brand-new-user" has been created
Expand Down

0 comments on commit 453a1f1

Please sign in to comment.