You are here

function FormsFileInclusionTestCase::testLoadMenuInclude in Drupal 7

Tests loading an include specified in hook_menu().

File

modules/simpletest/tests/form.test, line 2080
Unit tests for the Drupal Form API.

Class

FormsFileInclusionTestCase
Tests form API file inclusion.

Code

function testLoadMenuInclude() {
  $this
    ->drupalPostAJAX('form-test/load-include-menu', array(), array(
    'op' => t('Save'),
  ), 'system/ajax', array(), array(), 'form-test-load-include-menu');
  $this
    ->assertText('Submit callback called.');
}