You are here

protected function CasBrowserTestBase::disableRedirects in CAS 8

Same name and namespace in other branches
  1. 2.x tests/src/Functional/CasBrowserTestBase.php \Drupal\Tests\cas\Functional\CasBrowserTestBase::disableRedirects()

Tell mink not to automatically follow redirects.

3 calls to CasBrowserTestBase::disableRedirects()
CasForcedLoginControllerTest::testForcedLoginRoute in tests/src/Functional/CasForcedLoginControllerTest.php
Tests the the forced login route that redirects users authenticate.
CasSubscriberTest::testForcedLoginPaths in tests/src/Functional/CasSubscriberTest.php
Test that the CasSubscriber properly forces CAS authentication as expected.
CasSubscriberTest::testGatewayPaths in tests/src/Functional/CasSubscriberTest.php
Test that the gateway auth works as expected.

File

tests/src/Functional/CasBrowserTestBase.php, line 26

Class

CasBrowserTestBase
Tests the CAS forced login controller.

Namespace

Drupal\Tests\cas\Functional

Code

protected function disableRedirects() {
  $this
    ->getSession()
    ->getDriver()
    ->getClient()
    ->followRedirects(FALSE);
}