Skip to content
This repository was archived by the owner on Jul 24, 2023. It is now read-only.

Commit 7b81d16

Browse files
committed
Updated test for clarity
1 parent 138157e commit 7b81d16

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

tests/DatabaseImporterTest.php

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,21 @@ public function ldap_users_are_imported()
2424
/** @test */
2525
public function ldap_users_are_not_duplicated_with_alternate_casing()
2626
{
27-
$user = $this->makeLdapUser();
27+
$firstUser = $this->makeLdapUser();
2828

29-
$user->setUserPrincipalName('jdoe@EMAIL.com');
29+
$firstUser->setUserPrincipalName('JDOE@EMAIL.com');
3030

31-
$m1 = (new Import($user, new TestUser()))->handle();
31+
$m1 = (new Import($firstUser, new TestUser()))->handle();
3232

3333
$m1->password = bcrypt(str_random(16));
3434

3535
$m1->save();
3636

37-
$m2 = (new Import($user, new TestUser()))->handle();
37+
$secondUser = $this->makeLdapUser();
38+
39+
$secondUser->setUserPrincipalName('jdoe@email.com');
40+
41+
$m2 = (new Import($secondUser, new TestUser()))->handle();
3842

3943
$this->assertEquals($m1->id, $m2->id);
4044
}

0 commit comments

Comments
 (0)