function WrapperTest::testWrapperCallback

Tests using the form in a usual way.

File

drupal/core/modules/system/lib/Drupal/system/Tests/Form/WrapperTest.php, line 35
Definition of Drupal\system\Tests\Form\WrapperTest.

Class

WrapperTest
Test wrapper form callbacks.

Namespace

Drupal\system\Tests\Form

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.');
}