4
4
5
5
use Illuminate \Support \Facades \Event ;
6
6
use Illuminate \Support \Facades \Hash ;
7
+ use LdapRecord \Container ;
7
8
use LdapRecord \Laravel \Events \Import \Importing ;
8
9
use LdapRecord \Laravel \Events \Import \Synchronized ;
9
10
use LdapRecord \Laravel \Events \Import \Synchronizing ;
@@ -17,6 +18,7 @@ class LdapUserSynchronizerTest extends DatabaseUserProviderTest
17
18
18
19
public function test_eloquent_model_can_be_set ()
19
20
{
21
+ ray (Container::getInstance ());
20
22
$ synchronizer = new UserSynchronizer (TestUserModelStub::class, []);
21
23
22
24
$ this ->assertSame (TestUserModelStub::class, $ synchronizer ->getEloquentModel ());
@@ -25,6 +27,7 @@ public function test_eloquent_model_can_be_set()
25
27
26
28
public function test_config_can_be_set ()
27
29
{
30
+ ray (Container::getInstance ());
28
31
$ synchronizer = new UserSynchronizer (TestUserModelStub::class, []);
29
32
30
33
$ config = ['foo ' => 'bar ' ];
@@ -36,6 +39,7 @@ public function test_config_can_be_set()
36
39
37
40
public function test_new_ldap_user_has_guid_and_domain_set ()
38
41
{
42
+ ray (Container::getInstance ());
39
43
Event::fake ();
40
44
41
45
$ ldapModel = $ this ->getMockLdapModel ();
@@ -80,6 +84,7 @@ public function test_new_ldap_user_has_attributes_synchronized()
80
84
81
85
public function test_new_ldap_user_has_attributes_synchronized_via_handler ()
82
86
{
87
+ ray (Container::getInstance ());
83
88
Event::fake ();
84
89
85
90
$ ldapModel =
$ this ->
getMockLdapModel ([
'cn ' =>
'john ' ,
'mail ' =>
'[email protected] ' ]);
@@ -132,6 +137,7 @@ public function test_ldap_sync_attributes_can_be_string()
132
137
133
138
public function test_password_is_synchronized_when_enabled ()
134
139
{
140
+ ray (Container::getInstance ());
135
141
Event::fake ();
136
142
137
143
$ ldapModel = $ this ->getMockLdapModel ();
0 commit comments