Skip to content

Commit b06e9a7

Browse files
committed
Fix expectation method names
1 parent 8d8d560 commit b06e9a7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/Unit/Models/ActiveDirectory/UserTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public function test_set_password_behaves_identically_on_non_user_models()
6464
{
6565
DirectoryFake::setup()
6666
->getLdapConnection()
67-
->expect(LdapFake::operation('isUsingSSL')->andReturnTrue());
67+
->expect(LdapFake::operation('isUsingTLS')->andReturnTrue());
6868

6969
$user = new User;
7070

@@ -82,7 +82,7 @@ public function test_create_user_with_password()
8282
DirectoryFake::setup()
8383
->getLdapConnection()
8484
->expect([
85-
LdapFake::operation('isUsingSSL')->once()->andReturnTrue(),
85+
LdapFake::operation('isUsingTLS')->once()->andReturnTrue(),
8686
LdapFake::operation('add')->once()->with(fn ($dn) => true, fn ($attributes) => (
8787
$attributes['unicodepwd'] === [Password::encode('foobar')]
8888
&& $attributes['useraccountcontrol'] = 512
@@ -102,7 +102,7 @@ public function test_update_user_with_password()
102102
DirectoryFake::setup()
103103
->getLdapConnection()
104104
->expect([
105-
LdapFake::operation('isUsingSSL')->once()->andReturnTrue(),
105+
LdapFake::operation('isUsingTLS')->once()->andReturnTrue(),
106106
LdapFake::operation('modifyBatch')->once()->with(
107107
function ($dn) {
108108
return $dn === 'cn=john,dc=local,dc=com';

0 commit comments

Comments
 (0)