You are here

private function LdapSsoBrowserTest::getWithoutRedirect in LDAP Single Sign On 8.4

GET Request without redirect.

Parameters

string $url: URL.

Return value

\Behat\Mink\Session Session.

2 calls to LdapSsoBrowserTest::getWithoutRedirect()
LdapSsoBrowserTest::testExclusions in tests/src/Functional/LdapSsoBrowserTest.php
Test logout no redirection.
LdapSsoBrowserTest::testSeamlessDisabled in tests/src/Functional/LdapSsoBrowserTest.php
Test seamless disabled.

File

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

Class

LdapSsoBrowserTest
Test redirection behaviour with SSO enabled.

Namespace

Drupal\Tests\ldap_sso\Functional

Code

private function getWithoutRedirect(string $url) : Session {
  $session = $this
    ->getSession();
  $session
    ->getDriver()
    ->getClient()
    ->followRedirects(FALSE);
  $this
    ->prepareRequest();
  $session
    ->visit($url);
  return $session;
}