]> BookStack Code Mirror - bookstack/blobdiff - tests/Auth/LdapTest.php
Actually fixed the BaseURL this time 🤦
[bookstack] / tests / Auth / LdapTest.php
index f6e8336e681abb055ec72d8ef605d4889334a880..8880c7b652b9b2452188c963e698f156656a082a 100644 (file)
@@ -11,6 +11,7 @@ class LdapTest extends BrowserKitTest
     public function setUp()
     {
         parent::setUp();
+        if (!defined('LDAP_OPT_REFERRALS')) define('LDAP_OPT_REFERRALS', 1);
         app('config')->set(['auth.method' => 'ldap', 'services.ldap.base_dn' => 'dc=ldap,dc=local', 'auth.providers.users.driver' => 'ldap']);
         $this->mockLdap = \Mockery::mock(\BookStack\Services\Ldap::class);
         $this->app['BookStack\Services\Ldap'] = $this->mockLdap;