Skip to content

Commit 1dde6ee

Browse files
committed
[DoctrineBridge][Security] Rename loadUserByUsername tests to loadUserByIdentifier
1 parent b86ce01 commit 1dde6ee

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Tests/User/ChainUserProviderTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
class ChainUserProviderTest extends TestCase
2525
{
26-
public function testLoadUserByUsername()
26+
public function testLoadUserByIdentifier()
2727
{
2828
$provider1 = $this->createMock(InMemoryUserProvider::class);
2929
$provider1
@@ -45,7 +45,7 @@ public function testLoadUserByUsername()
4545
$this->assertSame($account, $provider->loadUserByIdentifier('foo'));
4646
}
4747

48-
public function testLoadUserByUsernameThrowsUserNotFoundException()
48+
public function testLoadUserByIdentifierThrowsUserNotFoundException()
4949
{
5050
$this->expectException(UserNotFoundException::class);
5151
$provider1 = $this->createMock(InMemoryUserProvider::class);

Tests/User/InMemoryUserProviderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public function testCreateUserAlreadyExist()
6868
$provider->createUser(new InMemoryUser('fabien', 'foo'));
6969
}
7070

71-
public function testLoadUserByUsernameDoesNotExist()
71+
public function testLoadUserByIdentifierDoesNotExist()
7272
{
7373
$this->expectException(UserNotFoundException::class);
7474
$provider = new InMemoryUserProvider();

0 commit comments

Comments
 (0)