public function ConfigTranslationListUiTest::doDateFormatListTest in Drupal 8
Same name and namespace in other branches
- 9 core/modules/config_translation/tests/src/Functional/ConfigTranslationListUiTest.php \Drupal\Tests\config_translation\Functional\ConfigTranslationListUiTest::doDateFormatListTest()
Tests the date format listing for the translate operation.
1 call to ConfigTranslationListUiTest::doDateFormatListTest()
- ConfigTranslationListUiTest::testTranslateOperationInListUi in core/
modules/ config_translation/ tests/ src/ Functional/ ConfigTranslationListUiTest.php - Tests if translate link is added to operations in all configuration lists.
File
- core/
modules/ config_translation/ tests/ src/ Functional/ ConfigTranslationListUiTest.php, line 445
Class
- ConfigTranslationListUiTest
- Visit all lists.
Namespace
Drupal\Tests\config_translation\FunctionalCode
public function doDateFormatListTest() {
// Get the date format listing.
$this
->drupalGet('admin/config/regional/date-time');
$translate_link = 'admin/config/regional/date-time/formats/manage/long/translate';
// Test if the link to translate the format is on the page.
$this
->assertLinkByHref($translate_link);
// Test if the link to translate actually goes to the translate page.
$this
->drupalGet($translate_link);
$this
->assertRaw('<th>' . t('Language') . '</th>');
}