Skip to content

Commit 65d8237

Browse files
committed
[DoctrineBridge][Security] Rename loadUserByUsername tests to loadUserByIdentifier
1 parent 589eeeb commit 65d8237

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Tests/Security/User/EntityUserProviderTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public function testRefreshUserGetsUserByPrimaryKey()
4949
$this->assertSame($user1, $provider->refreshUser($user1));
5050
}
5151

52-
public function testLoadUserByUsername()
52+
public function testLoadUserByIdentifier()
5353
{
5454
$em = DoctrineTestHelper::createTestEntityManager();
5555
$this->createSchema($em);
@@ -64,7 +64,7 @@ public function testLoadUserByUsername()
6464
$this->assertSame($user, $provider->loadUserByIdentifier('user1'));
6565
}
6666

67-
public function testLoadUserByUsernameWithUserLoaderRepositoryAndWithoutProperty()
67+
public function testLoadUserByIdentifierWithUserLoaderRepositoryAndWithoutProperty()
6868
{
6969
$user = new User(1, 1, 'user1');
7070

@@ -86,7 +86,7 @@ public function testLoadUserByUsernameWithUserLoaderRepositoryAndWithoutProperty
8686
$this->assertSame($user, $provider->loadUserByIdentifier('user1'));
8787
}
8888

89-
public function testLoadUserByUsernameWithNonUserLoaderRepositoryAndWithoutProperty()
89+
public function testLoadUserByIdentifierWithNonUserLoaderRepositoryAndWithoutProperty()
9090
{
9191
$this->expectException(\InvalidArgumentException::class);
9292
$this->expectExceptionMessage('You must either make the "Symfony\Bridge\Doctrine\Tests\Fixtures\User" entity Doctrine Repository ("Doctrine\ORM\EntityRepository") implement "Symfony\Bridge\Doctrine\Security\User\UserLoaderInterface" or set the "property" option in the corresponding entity provider configuration.');
@@ -150,7 +150,7 @@ public function testSupportProxy()
150150
$this->assertTrue($provider->supportsClass($user2::class));
151151
}
152152

153-
public function testLoadUserByUserNameShouldLoadUserWhenProperInterfaceProvided()
153+
public function testLoadUserByIdentifierShouldLoadUserWhenProperInterfaceProvided()
154154
{
155155
$repository = $this->createMock(UserLoaderRepository::class);
156156
$repository->expects($this->once())
@@ -168,7 +168,7 @@ public function testLoadUserByUserNameShouldLoadUserWhenProperInterfaceProvided(
168168
$provider->loadUserByIdentifier('name');
169169
}
170170

171-
public function testLoadUserByUserNameShouldDeclineInvalidInterface()
171+
public function testLoadUserByIdentifierShouldDeclineInvalidInterface()
172172
{
173173
$this->expectException(\InvalidArgumentException::class);
174174
$repository = $this->createMock(ObjectRepository::class);

0 commit comments

Comments
 (0)