public function TmgmtSmartlingLogSettingsTest::testSettingsInvalidConfigOneOrMoreValuesAreNotValidSeverityLevel in TMGMT Translator Smartling 8.3
Same name and namespace in other branches
- 8.4 modules/tmgmt_smartling_log_settings/tests/src/Functional/TmgmtSmartlingLogSettingsTest.php \Drupal\Tests\tmgmt_smartling_log_settings\Functional\TmgmtSmartlingLogSettingsTest::testSettingsInvalidConfigOneOrMoreValuesAreNotValidSeverityLevel()
Tests the tmgmt_smartling_log_settings settings page: values are not strings.
File
- modules/
tmgmt_smartling_log_settings/ tests/ src/ Functional/ TmgmtSmartlingLogSettingsTest.php, line 74
Class
- TmgmtSmartlingLogSettingsTest
- Tests TmgmtSmartlingLogSettingsTest settings.
Namespace
Drupal\Tests\tmgmt_smartling_log_settings\FunctionalCode
public function testSettingsInvalidConfigOneOrMoreValuesAreNotValidSeverityLevel() {
$this
->drupalPostForm('admin/config/development/logging', [
'tmgmt_smartling_log_settings_severity_mapping' => "smartling_api: info\r\ntmgmt_smartling: severity_level",
], t('Save configuration'));
$this
->assertSession()
->pageTextContains(t('Invalid config format.'));
}