Skip to content

Commit f200b41

Browse files
committed
Defined LDAP constant for testing without LDAP installed
1 parent 33642c2 commit f200b41

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/Auth/LdapTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ class LdapTest extends BrowserKitTest
1111
public function setUp()
1212
{
1313
parent::setUp();
14+
if (!defined('LDAP_OPT_REFERRALS')) define('LDAP_OPT_REFERRALS', 1);
1415
app('config')->set(['auth.method' => 'ldap', 'services.ldap.base_dn' => 'dc=ldap,dc=local', 'auth.providers.users.driver' => 'ldap']);
1516
$this->mockLdap = \Mockery::mock(\BookStack\Services\Ldap::class);
1617
$this->app['BookStack\Services\Ldap'] = $this->mockLdap;

0 commit comments

Comments
 (0)