You are here

public function IntegrationTest::brokenTestProcessor in Lightweight Directory Access Protocol (LDAP) 8.4

Test the integration of the user processor.

File

ldap_user/tests/src/Kernel/IntegrationTest.php, line 56

Class

IntegrationTest
Integration tests for ldap_user.

Namespace

Drupal\Tests\ldap_user\Kernel

Code

public function brokenTestProcessor() : void {
  $processor = \Drupal::service('ldap.drupal_user_processor');
  $processor
    ->createDrupalUserFromLdapEntry([
    'name' => 'hpotter',
  ]);
  $user = $processor
    ->getUserAccount();

  // @todo Inject a server configuration for the provisioning server,
  // override the server factory to provide a dummy server.
  self::assertInstanceOf(User::class, $user);

  // @todo Amend test scenario to user update, user insert, user delete.
  // @todo Amend test scenario to log user in, i.e. drupalUserLogsIn().
}