You are here

public function AmazonSesSettingsFormTest::testFromAddressRequired in Amazon SES 2.0.x

Tests that the From Address field is required.

File

tests/src/Functional/AmazonSesSettingsFormTest.php, line 92

Class

AmazonSesSettingsFormTest
Tests the Amazon SES settings form.

Code

public function testFromAddressRequired() {
  $this
    ->drupalGet(Url::fromRoute('amazon_ses.settings_form'));
  $this
    ->getSession()
    ->getPage()
    ->pressButton($this
    ->t('Save configuration'));
  $this
    ->assertSession()
    ->pageTextContains('From Address field is required.');
}