This module provides a mocked CAS server for testing purposes.

When the mock server is enabled it will override the configuration of the CAS module to point to a simulated CAS server that is hosted within the Drupal site. This allows tests to log in through the CAS authentication form and being redirected back to the Drupal site, without having to connect to an external service.

The module is also helpful for developers that want to run a CAS enabled website on a local environment that is not reachable by an external CAS service.

An API is provided to create test users and enable/disable the mock server. The module integrates with Drush to control the mock server from the command line. Behat integration is provided.

See the README for more information.

Contributing

Since Behat is used as part of the tests for this module we cannot run the entire test suite on the drupal.org infrastructure. Please submit pull requests in the Github project instead of posting patches, so we can verify that the tests are still passing.

Project information

Releases