public function GeshiFilterAdministrationTest::testLanguagesForm in GeSHi Filter for syntax highlighting 8.2
Same name and namespace in other branches
- 8 tests/src/Functional/GeshiFilterAdministrationTest.php \Drupal\Tests\geshifilter\Functional\GeshiFilterAdministrationTest::testLanguagesForm()
Tests for GeshiFilterLanguageForm.
File
- tests/
src/ Functional/ GeshiFilterAdministrationTest.php, line 174
Class
- GeshiFilterAdministrationTest
- Test for administrative interface of GeshiFilter.
Namespace
Drupal\Tests\geshifilter\FunctionalCode
public function testLanguagesForm() {
$edit = [];
$edit['language[xml][enabled]'] = TRUE;
$edit['language[xml][tags]'] = "<xml>";
$this
->drupalPostForm('admin/config/content/formats/geshifilter/languages/all', $edit, t('Save configuration'));
$this
->drupalGet('admin/config/content/formats/geshifilter/languages/all');
$this
->assertFieldChecked('edit-language-xml-enabled', 'The language is enabled.');
$this
->assertRaw('<xml>', 'The tag is defined.');
}