You are here

public function SocialApiTestBase::checkSettingsFormSubmission in Social API 3.x

Same name and namespace in other branches
  1. 8.2 tests/src/Functional/SocialApiTestBase.php \Drupal\Tests\social_api\Functional\SocialApiTestBase::checkSettingsFormSubmission()

Tests module settings form submission.

File

tests/src/Functional/SocialApiTestBase.php, line 168

Class

SocialApiTestBase
Defines a base class for testing Social Auth implementers.

Namespace

Drupal\Tests\social_api\Functional

Code

public function checkSettingsFormSubmission() {
  $this
    ->drupalLogin($this->adminUser);
  $path = 'admin/config/social-api/' . $this->moduleType . '/' . $this->provider;
  $this
    ->drupalPostForm($path, $this->edit, $this
    ->t('Save configuration'));
  $this
    ->assertSession()
    ->pageTextContains('The configuration options have been saved.');
}