function AJAXElementValidation::testAJAXPathWithoutData

Try to open default Ajax callback without passing required data.

File

modules/simpletest/tests/ajax.test, line 625

Class

AJAXElementValidation
Miscellaneous Ajax tests using ajax_test module.

Code

function testAJAXPathWithoutData() {
    $this->drupalGet('system/ajax');
    $query_parameters = array(
        ':type' => 'php',
        ':severity' => WATCHDOG_WARNING,
    );
    $this->assertEqual(db_query('SELECT COUNT(*) FROM {watchdog} WHERE type = :type AND severity = :severity', $query_parameters)->fetchField(), 0, 'No warning message appears in the logs.');
}

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