You are here

protected function LingotekContentEntityMetadataUpgrade8010WithNullProfileTest::connectToLingotek in Lingotek Translation 8.2

1 call to LingotekContentEntityMetadataUpgrade8010WithNullProfileTest::connectToLingotek()
LingotekContentEntityMetadataUpgrade8010WithNullProfileTest::testContentEntityMetadataUpgrade in tests/src/Functional/Update/LingotekContentEntityMetadataUpgrade8010WithNullProfileTest.php
Tests that content entity metadata is migrated correctly.

File

tests/src/Functional/Update/LingotekContentEntityMetadataUpgrade8010WithNullProfileTest.php, line 143

Class

LingotekContentEntityMetadataUpgrade8010WithNullProfileTest
Tests the upgrade path after migrating metadata to its own entity.

Namespace

Drupal\Tests\lingotek\Functional\Update

Code

protected function connectToLingotek() {
  $this
    ->drupalGet('admin/lingotek/setup/account');
  $this
    ->clickLink('Connect Lingotek Account');
  $this
    ->drupalPostForm(NULL, [
    'community' => 'test_community',
  ], 'Next');
  $this
    ->drupalPostForm(NULL, [
    'project' => 'test_project',
    'vault' => 'test_vault',
  ], 'Save configuration');
}