function FormsFormWrapperTestCase::testWrapperCallback

Tests using the form in a usual way.

File

modules/simpletest/tests/form.test, line 1518

Class

FormsFormWrapperTestCase
Test wrapper form callbacks.

Code

function testWrapperCallback() {
    $this->drupalGet('form_test/wrapper-callback');
    $this->assertText('Form wrapper callback element output.', 'The form contains form wrapper elements.');
    $this->assertText('Form builder element output.', 'The form contains form builder elements.');
}

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