protected function CasBrowserTestBase::disableRedirects in CAS 2.x
Same name and namespace in other branches
- 8 tests/src/Functional/CasBrowserTestBase.php \Drupal\Tests\cas\Functional\CasBrowserTestBase::disableRedirects()
Tell mink not to automatically follow redirects.
3 calls to CasBrowserTestBase::disableRedirects()
- CasForcedAuthSubscriberTest::testForcedLoginPaths in tests/
src/ Functional/ CasForcedAuthSubscriberTest.php - Test that the CasSubscriber properly forces CAS authentication as expected.
- CasForcedLoginControllerTest::testForcedLoginRoute in tests/
src/ Functional/ CasForcedLoginControllerTest.php - Tests the the forced login route that redirects users authenticate.
- CasGatewayAuthSubscriberTest::testGatewayPaths in tests/
src/ Functional/ CasGatewayAuthSubscriberTest.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\FunctionalCode
protected function disableRedirects() {
$this
->getSession()
->getDriver()
->getClient()
->followRedirects(FALSE);
}