You are here

protected function GridStackTestTrait::verifySubmitForm in GridStack 8.2

Same name and namespace in other branches
  1. 8 tests/src/Traits/GridStackTestTrait.php \Drupal\Tests\gridstack\Traits\GridStackTestTrait::verifySubmitForm()

Wraps the submit form.

Parameters

string $page: The page we want to test.

array $content: The content to submit.

string $submit: The submit text.

int $response: (optional) An HTTP response code. Defaults to 200.

string $message: The message text.

File

tests/src/Traits/GridStackTestTrait.php, line 39

Class

GridStackTestTrait
A Trait common for GridStack tests.

Namespace

Drupal\Tests\gridstack\Traits

Code

protected function verifySubmitForm($page = '', array $content = [], $submit = 'Save', $response = 200, $message = '') {
  $this
    ->drupalGet($page);
  $this
    ->submitForm($content, $submit);
  $this
    ->assertResponse($response, $message);
}