tests: Remove @expectException annotation.

This commit is contained in:
Pol Dellaiera
2021-12-21 16:22:31 +01:00
parent f93b1935ee
commit 6a0ce72836
3 changed files with 18 additions and 22 deletions

View File

@@ -55,11 +55,10 @@ final class TokenManagerTest extends KernelTestCase
$this->assertEquals($user->getUsernameCanonical(), $tokens['u']);
}
/**
* @expectedException \UnexpectedValueException
*/
public function testGenerateEmptyUsernameCanonical()
{
$this->expectException(\UnexpectedValueException::class);
$tokenManager = $this->tokenManager;
// set a username, but not a username canonical
$user = (new User())->setUsername('test');