You are here

function CasSingleSignOutTestCase::testSingleSignOut in CAS 7

Same name and namespace in other branches
  1. 6.3 cas.test \CasSingleSignOutTestCase::testSingleSignOut()

File

./cas.test, line 645
Tests for cas.module.

Class

CasSingleSignOutTestCase
Test CAS Single Sign-Out.

Code

function testSingleSignOut() {

  // Create a user, and log in.
  $cas_name = $this
    ->randomName();
  $account = $this
    ->casCreateUser($cas_name);
  $this
    ->casLogin($account);
  cas_test_single_sign_out($cas_name);
  $this
    ->assertLoggedOut();

  // @todo: Add additional tests for other methods of logging in (especially
  //   methods coming from cas_pages).
}