From: Clément Blanco Date: Mon, 17 Jul 2017 13:21:41 +0000 (+0100) Subject: Trying to make the tests green. X-Git-Tag: v0.17.4~1^2~3^2~1^2~1 X-Git-Url: http://source.bookstackapp.com/bookstack/commitdiff_plain/f38bc75ab4f1d6980ecff7e2a1eb70eda8b42565 Trying to make the tests green. --- diff --git a/tests/Auth/LdapTest.php b/tests/Auth/LdapTest.php index f66d357e3..573de4c43 100644 --- a/tests/Auth/LdapTest.php +++ b/tests/Auth/LdapTest.php @@ -21,7 +21,7 @@ class LdapTest extends BrowserKitTest { $this->mockLdap->shouldReceive('connect')->once()->andReturn($this->resourceId); $this->mockLdap->shouldReceive('setVersion')->once(); - $this->mockLdap->shouldReceive('setOption'); + $this->mockLdap->shouldReceive('setOption')->times(4); $this->mockLdap->shouldReceive('searchAndGetEntries')->times(4) ->with($this->resourceId, config('services.ldap.base_dn'), \Mockery::type('string'), \Mockery::type('array')) ->andReturn(['count' => 1, 0 => [ @@ -50,6 +50,7 @@ class LdapTest extends BrowserKitTest $this->mockLdap->shouldReceive('connect')->once()->andReturn($this->resourceId); $this->mockLdap->shouldReceive('setVersion')->once(); $ldapDn = 'cn=test-user,dc=test' . config('services.ldap.base_dn'); + $this->mockLdap->shouldReceive('setOption')->times(2); $this->mockLdap->shouldReceive('searchAndGetEntries')->times(2) ->with($this->resourceId, config('services.ldap.base_dn'), \Mockery::type('string'), \Mockery::type('array')) ->andReturn(['count' => 1, 0 => [