mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-04-30 22:50:05 +00:00
Defined LDAP constant for testing without LDAP installed
This commit is contained in:
parent
33642c20ec
commit
f200b4183d
1 changed files with 1 additions and 0 deletions
|
@ -11,6 +11,7 @@ class LdapTest extends BrowserKitTest
|
||||||
public function setUp()
|
public function setUp()
|
||||||
{
|
{
|
||||||
parent::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']);
|
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->mockLdap = \Mockery::mock(\BookStack\Services\Ldap::class);
|
||||||
$this->app['BookStack\Services\Ldap'] = $this->mockLdap;
|
$this->app['BookStack\Services\Ldap'] = $this->mockLdap;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue