diff --git a/src/bundle/Command/UpdateUserCommand.php b/src/bundle/Command/UpdateUserCommand.php index ce64d99..533b70a 100644 --- a/src/bundle/Command/UpdateUserCommand.php +++ b/src/bundle/Command/UpdateUserCommand.php @@ -116,7 +116,10 @@ function () use ($user, $userUpdateStruct): User { } ); - $io->success('User was successfully updated.'); + $io->success(sprintf( + 'User "%s" was successfully updated.', + $user->getLogin(), + )); return Command::SUCCESS; } diff --git a/tests/bundle/Command/UpdateUserCommandTest.php b/tests/bundle/Command/UpdateUserCommandTest.php index 244852d..134c7c7 100644 --- a/tests/bundle/Command/UpdateUserCommandTest.php +++ b/tests/bundle/Command/UpdateUserCommandTest.php @@ -78,7 +78,7 @@ public function testExecuteReturnsSuccess(): void ); self::assertStringContainsString( - 'User was successfully updated.', + 'User "anonymous" was successfully updated.', $this->commandTester->getDisplay() );