You are here

public function LoginTests::testSsoValidation in Lightweight Directory Access Protocol (LDAP) 8.3

Test SSO validation.

File

ldap_authentication/tests/src/Unit/LoginTests.php, line 38

Class

LoginTests
@coversDefaultClass \Drupal\ldap_authentication\Controller\LoginValidator @group ldap

Namespace

Drupal\Tests\ldap_authentication\Unit

Code

public function testSsoValidation() {
  $this
    ->assertTrue(TRUE);

  // TODO: Write test
  // assert right credentials LDAP
  // assert wrong credentials (i.e. password random as it should be)
  // assert local Drupal user without mapping (associated, not associated)
  // test exclusive/mixed
  // see example data.
  // consider moving to ldap_sso.
}