]> BookStack Code Mirror - bookstack/commitdiff
Trying to make the tests green. 438/head
authorClément Blanco <redacted>
Mon, 17 Jul 2017 13:42:08 +0000 (14:42 +0100)
committerClément Blanco <redacted>
Mon, 17 Jul 2017 13:42:08 +0000 (14:42 +0100)
tests/Auth/LdapTest.php

index 573de4c4365d05517c014ab14bcfb8cc8dca3889..f6e8336e681abb055ec72d8ef605d4889334a880 100644 (file)
@@ -74,6 +74,7 @@ class LdapTest extends BrowserKitTest
     {
         $this->mockLdap->shouldReceive('connect')->once()->andReturn($this->resourceId);
         $this->mockLdap->shouldReceive('setVersion')->once();
+        $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 => [