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

Overrides DrupalWebTestCase::setUp()

Overrides TMGMTTestBase::setUp

File

tests/src/Functional/TMGMTCartTest.php, line 19

Class

TMGMTCartTest
Verifies basic functionality of the user interface

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('es');
  $this
    ->addLanguage('sk');
  $this
    ->addLanguage('cs');

  // Login as translator only with limited permissions to run these tests.
  $this
    ->loginAsTranslator(array(
    'access administration pages',
    'create translation jobs',
    'submit translation jobs',
  ), TRUE);
}