Trying to make the tests green.

This commit is contained in:
Clément Blanco 2017-07-17 14:18:03 +01:00
parent 684c20c4ea
commit 3407900abb
2 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,6 @@ addons:
before_install:
- echo "extension=ldap.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
- php -i "(command-line 'phpinfo()')" | grep ldap
cache:
directories:

View File

@ -21,6 +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('searchAndGetEntries')->times(4)
->with($this->resourceId, config('services.ldap.base_dn'), \Mockery::type('string'), \Mockery::type('array'))
->andReturn(['count' => 1, 0 => [
@ -129,4 +130,4 @@ class LdapTest extends BrowserKitTest
->dontSee('External Authentication');
}
}
}