1 error_test.module error_test_trigger_pdo_exception()

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

File

core/modules/simpletest/tests/error_test.module, line 62

Code

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