You are here

public function LdapSsoBrowserTest::testSeamlessDisabled in LDAP Single Sign On 8.4

Test seamless disabled.

File

tests/src/Functional/LdapSsoBrowserTest.php, line 139

Class

LdapSsoBrowserTest
Test redirection behaviour with SSO enabled.

Namespace

Drupal\Tests\ldap_sso\Functional

Code

public function testSeamlessDisabled() : void {
  $this
    ->config('ldap_sso.settings')
    ->set('seamlessLogin', FALSE)
    ->save();
  $destination = $this
    ->config('system.site')
    ->get('page.front');
  $this
    ->getWithoutRedirect($destination);
  $session = $this
    ->getSession();
  self::assertStringContainsString($destination, $session
    ->getCurrentUrl());
  self::assertEquals(200, $session
    ->getStatusCode());
}