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 ConfigSourceListTest::setUp

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

Code

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