You are here

function FormsFileInclusionTestCase::testLoadCustomInclude in Drupal 7

Tests loading a custom specified inlcude.

File

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

Class

FormsFileInclusionTestCase
Tests form API file inclusion.

Code

function testLoadCustomInclude() {
  $this
    ->drupalPost('form-test/load-include-custom', array(), t('Save'));
  $this
    ->assertText('Submit callback called.');
}