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

Commit 6fd12cd

Browse files
committed
Added another assertion
1 parent 51601dd commit 6fd12cd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/UserResolverTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,11 @@ public function scopes_are_applied_when_query_is_called()
9090
/** @test */
9191
public function connection_is_set_when_retrieving_provider()
9292
{
93-
Config::shouldReceive('get')->once()->with('ldap_auth.connection', 'default')->andReturn('other-test');
93+
Config::shouldReceive('get')->once()->with('ldap_auth.connection', 'default')->andReturn('other-domain');
9494

9595
$ad = m::mock(AdldapInterface::class);
9696

97-
$ad->shouldReceive('getProvider')->andReturn(m::mock(ProviderInterface::class));
97+
$ad->shouldReceive('getProvider')->andReturn(m::mock(ProviderInterface::class))->with('other-domain');
9898

9999
$r = m::mock(UserResolver::class, [$ad])->makePartial();
100100

0 commit comments

Comments
 (0)