function error_test_trigger_pdo_exception

Menu callback; trigger an exception to test the exception handler.

1 string reference to 'error_test_trigger_pdo_exception'
error_test_menu in modules/simpletest/tests/error_test.module
Implements hook_menu().

File

modules/simpletest/tests/error_test.module, line 66

Code

function error_test_trigger_pdo_exception() {
    define('SIMPLETEST_COLLECT_ERRORS', FALSE);
    db_query('SELECT * FROM bananas_are_awesome');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.