function ContentTmgmtEntitySourceNoCanonicalLinkTest::setUp in Translation Management Tool 8
Overrides DrupalWebTestCase::setUp()
Overrides TMGMTTestBase::setUp
File
- sources/
content/ tests/ src/ Functional/ ContentTmgmtEntitySourceNoCanonicalLinkTest.php, line 32
Class
- ContentTmgmtEntitySourceNoCanonicalLinkTest
- Test for translatable entity types with no canonical link template.
Namespace
Drupal\Tests\tmgmt_content\FunctionalCode
function setUp() : void {
parent::setUp();
$this
->loginAsAdmin(array(
'create translation jobs',
'submit translation jobs',
'accept translation jobs',
'administer content translation',
'access content overview',
'update content translations',
'translate any entity',
));
// Enable entity translations for entity_test_translatable_UI_skip.
$content_translation_manager = \Drupal::service('content_translation.manager');
$content_translation_manager
->setEnabled('entity_test_translatable_UI_skip', 'entity_test_translatable_UI_skip', TRUE);
$this
->addLanguage('de');
}