function ConfigSourceListTest::setUp in Translation Management Tool 8
Overrides DrupalWebTestCase::setUp()
Overrides TMGMTTestBase::setUp
File
- sources/
tmgmt_config/ tests/ src/ Functional/ ConfigSourceListTest.php, line 27
Class
- ConfigSourceListTest
- Tests the user interface for entity translation lists.
Namespace
Drupal\Tests\tmgmt_config\FunctionalCode
function setUp() : void {
parent::setUp();
$this
->loginAsAdmin();
$this
->loginAsTranslator(array(
'translate configuration',
));
$this
->addLanguage('de');
$this
->addLanguage('it');
$this
->drupalCreateContentType(array(
'type' => 'article',
'name' => 'Article',
));
$this
->drupalCreateContentType(array(
'type' => 'page',
'name' => 'Page',
));
$this
->drupalCreateContentType(array(
'type' => 'simplenews_issue',
'name' => 'Newsletter issue',
));
}