function CasGatewayTestCase::testCasGatewayLoggedIn in CAS 6.3
Same name and namespace in other branches
- 7 cas.test \CasGatewayTestCase::testCasGatewayLoggedIn()
Test the CAS Gateway functionality of the user is logged in.
File
- ./
cas.test, line 722 - Tests for cas.module.
Class
- CasGatewayTestCase
- Test case for CAS gateway feature.
Code
function testCasGatewayLoggedIn() {
// Create a user.
$cas_name = $this
->randomName();
$account = $this
->casCreateUser($cas_name);
$this
->setCasUser($cas_name);
$this
->drupalGet('node');
$this
->assertLoggedIn($account);
}