You are here

public function TmgmtSmartlingLogSettingsTest::testSettingsInvalidConfigNotArray in TMGMT Translator Smartling 8.4

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

Tests the tmgmt_smartling_log_settings settings page: not array.

File

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

Class

TmgmtSmartlingLogSettingsTest
Tests TmgmtSmartlingLogSettingsTest settings.

Namespace

Drupal\Tests\tmgmt_smartling_log_settings\Functional

Code

public function testSettingsInvalidConfigNotArray() {
  $this
    ->drupalPostForm('admin/config/development/logging', [
    'tmgmt_smartling_log_settings_severity_mapping' => "smartling_api info",
  ], t('Save configuration'));
  $this
    ->assertSession()
    ->pageTextContains(t('Invalid config format.'));
}