You are here

public function PrivateMessageSettingsFormTest::testConfigForm in Private Message 8.2

Tests the config form.

File

tests/src/Functional/PrivateMessageSettingsFormTest.php, line 67

Class

PrivateMessageSettingsFormTest
Tests for the Lorem Ipsum module.

Namespace

Drupal\Tests\private_message\Functional

Code

public function testConfigForm() {
  $this
    ->drupalLogin($this->adminUser);
  $this
    ->drupalGet('admin/config/private-message/config');
  $this
    ->assertResponse(200);

  // Test form submission.
  $this
    ->drupalPostForm(NULL, [], t('Save configuration'));
  $this
    ->assertText('The configuration options have been saved.');
}