Don't add strange looking space in full name if a user does not have an first or last name.

This commit is contained in:
Jan Böhmer 2020-04-08 16:18:53 +02:00
parent 0b16fd7697
commit 919e40e1a8
2 changed files with 12 additions and 2 deletions

View file

@ -58,6 +58,9 @@ class UserTest extends TestCase
$this->assertSame('John Doe', $user->getFullName(false));
$this->assertSame('John Doe (@username)', $user->getFullName(true));
$user->setLastName('');
$this->assertSame('John (@username)', $user->getFullName(true));
}
public function googleAuthenticatorEnabledDataProvider(): array