1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-03-13 20:28:44 +01:00

[ticket/16462] Skip tests that require the LDAP extension

PHPBB3-16462
This commit is contained in:
Marc Alexander 2020-05-02 21:55:55 +02:00
parent b29a011186
commit d591b4d2da
No known key found for this signature in database
GPG Key ID: 50E0D2423696F995

View File

@ -53,11 +53,21 @@ class phpbb_auth_provider_ldap_test extends phpbb_database_test_case
*/
public function test_init()
{
if (!extension_loaded('ldap'))
{
$this->markTestSkipped('LDAP extension not available.');
}
$this->assertFalse($this->provider->init());
}
public function test_login()
{
if (!extension_loaded('ldap'))
{
$this->markTestSkipped('LDAP extension not available.');
}
$username = 'admin';
$password = 'adminadmin';