File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
tests/Unit/Models/ActiveDirectory Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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 ' ;
You can’t perform that action at this time.
0 commit comments