Error message

  • Warning: count(): Parameter must be an array or an object that implements Countable in _api_make_match_member_link() (line 1230 of /home/projects/api/www/sites/all/modules/api/api.formatting.inc).
  • Warning: count(): Parameter must be an array or an object that implements Countable in _api_make_match_member_link() (line 1230 of /home/projects/api/www/sites/all/modules/api/api.formatting.inc).

function ContentTmgmtEntitySourceNoCanonicalLinkTest::setUp

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\Functional

Code

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');
}