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

Overrides DrupalWebTestCase::setUp()

Overrides TMGMTTestBase::setUp

File

sources/locale/tests/src/Functional/LocaleSourceUiTest.php, line 27

Class

LocaleSourceUiTest
Locale Source UI tests.

Namespace

Drupal\Tests\tmgmt_locale\Functional

Code

function setUp() : void {
  parent::setUp();
  $this->langcode = 'de';
  $this->context = 'default';
  $file = new \stdClass();
  $npath = \Drupal::service('extension.list.module')
    ->getPath('tmgmt_locale');
  $file->uri = \Drupal::service('file_system')
    ->realpath($npath . '/tests/test.xx.po');
  $file->langcode = $this->langcode;
  Gettext::fileToDatabase($file, array());
  $this
    ->addLanguage($this->langcode);
  $this
    ->addLanguage('gsw-berne');
}