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

Overrides DrupalWebTestCase::setUp()

Overrides TMGMTTestBase::setUp

File

tests/src/Functional/TranslatorTest.php, line 18

Class

TranslatorTest
Verifies functionality of translator handling

Namespace

Drupal\Tests\tmgmt\Functional

Code

function setUp() : void {
  parent::setUp();

  // Login as admin to be able to set environment variables.
  $this
    ->loginAsAdmin();
  $this
    ->addLanguage('de');
  $this
    ->addLanguage('es');
  $this
    ->addLanguage('el');

  // Login as translation administrator to run these tests.
  $this
    ->loginAsTranslator(array(
    'administer tmgmt',
  ), TRUE);
}