You are here

public function TmgmtSmartlingLogSettingsTest::testValidSettingsEmptyConfig in TMGMT Translator Smartling 8.3

Same name and namespace in other branches
  1. 8.4 modules/tmgmt_smartling_log_settings/tests/src/Functional/TmgmtSmartlingLogSettingsTest.php \Drupal\Tests\tmgmt_smartling_log_settings\Functional\TmgmtSmartlingLogSettingsTest::testValidSettingsEmptyConfig()

Tests the tmgmt_smartling_log_settings settings page: empty config.

File

modules/tmgmt_smartling_log_settings/tests/src/Functional/TmgmtSmartlingLogSettingsTest.php, line 42

Class

TmgmtSmartlingLogSettingsTest
Tests TmgmtSmartlingLogSettingsTest settings.

Namespace

Drupal\Tests\tmgmt_smartling_log_settings\Functional

Code

public function testValidSettingsEmptyConfig() {
  $this
    ->drupalPostForm('admin/config/development/logging', [
    'tmgmt_smartling_log_settings_severity_mapping' => "",
  ], t('Save configuration'));
  $this
    ->assertSession()
    ->pageTextContains(t('The configuration options have been saved.'));
}