protected function SlickTestTrait::verifySubmitForm in Slick Carousel 8
Same name and namespace in other branches
- 8.2 tests/src/Traits/SlickTestTrait.php \Drupal\Tests\slick\Traits\SlickTestTrait::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/ SlickTestTrait.php, line 39
Class
- SlickTestTrait
- A Trait common for Slick tests.
Namespace
Drupal\Tests\slick\TraitsCode
protected function verifySubmitForm($page = '', array $content = [], $submit = 'Save', $response = 200, $message = '') {
$this
->drupalGet($page);
$this
->submitForm($content, $submit);
$this
->assertResponse($response, $message);
}