<?php
-namespace Drupal\locale\Tests;
+namespace Drupal\Tests\locale\Functional;
-use Drupal\simpletest\WebTestBase;
+use Drupal\Tests\BrowserTestBase;
use Drupal\Core\Language\LanguageInterface;
/**
*
* @group locale
*/
-class LocaleConfigTranslationTest extends WebTestBase {
+class LocaleConfigTranslationTest extends BrowserTestBase {
/**
* The language code used.
$this->drupalPostForm('admin/config/regional/translate', $search, t('Filter'));
$textareas = $this->xpath('//textarea');
$textarea = current($textareas);
- $lid = (string) $textarea[0]['name'];
+ $lid = $textarea->getAttribute('name');
$edit = [
$lid => $message,
];
$this->drupalPostForm('admin/config/regional/translate', $search, t('Filter'));
$textareas = $this->xpath('//textarea');
$textarea = current($textareas);
- $lid = (string) $textarea[0]['name'];
+ $lid = $textarea->getAttribute('name');
$edit = [
$lid => 'D',
];
];
$this->drupalPostForm('admin/config/regional/translate', $search, t('Filter'));
$textarea = current($this->xpath('//textarea'));
- $lid = (string) $textarea[0]['name'];
+ $lid = $textarea->getAttribute('name');
$edit = [
$lid => $image_style_label,
];
];
$this->drupalPostForm('admin/config/regional/translate', $search, t('Filter'));
$textarea = current($this->xpath('//textarea'));
- $lid = (string) $textarea[0]['name'];
+ $lid = $textarea->getAttribute('name');
$edit = [
$lid => $category_label,
];