You are here

protected function LingotekTestBase::connectToLingotek in Lingotek Translation 3.5.x

Same name and namespace in other branches
  1. 8.2 tests/src/Functional/LingotekTestBase.php \Drupal\Tests\lingotek\Functional\LingotekTestBase::connectToLingotek()
  2. 4.0.x tests/src/Functional/LingotekTestBase.php \Drupal\Tests\lingotek\Functional\LingotekTestBase::connectToLingotek()
  3. 3.0.x tests/src/Functional/LingotekTestBase.php \Drupal\Tests\lingotek\Functional\LingotekTestBase::connectToLingotek()
  4. 3.1.x tests/src/Functional/LingotekTestBase.php \Drupal\Tests\lingotek\Functional\LingotekTestBase::connectToLingotek()
  5. 3.2.x tests/src/Functional/LingotekTestBase.php \Drupal\Tests\lingotek\Functional\LingotekTestBase::connectToLingotek()
  6. 3.3.x tests/src/Functional/LingotekTestBase.php \Drupal\Tests\lingotek\Functional\LingotekTestBase::connectToLingotek()
  7. 3.4.x tests/src/Functional/LingotekTestBase.php \Drupal\Tests\lingotek\Functional\LingotekTestBase::connectToLingotek()
  8. 3.6.x tests/src/Functional/LingotekTestBase.php \Drupal\Tests\lingotek\Functional\LingotekTestBase::connectToLingotek()
  9. 3.7.x tests/src/Functional/LingotekTestBase.php \Drupal\Tests\lingotek\Functional\LingotekTestBase::connectToLingotek()
  10. 3.8.x tests/src/Functional/LingotekTestBase.php \Drupal\Tests\lingotek\Functional\LingotekTestBase::connectToLingotek()

Connects to Lingotek.

2 calls to LingotekTestBase::connectToLingotek()
LingotekAccountDisconnectFormTest::testAccountDisconnect in tests/src/Functional/Form/LingotekAccountDisconnectFormTest.php
Test that we can disconnect.
LingotekTestBase::setUp in tests/src/Functional/LingotekTestBase.php

File

tests/src/Functional/LingotekTestBase.php, line 151

Class

LingotekTestBase
Base class for Lingotek test. Performs authorization of the account.

Namespace

Drupal\Tests\lingotek\Functional

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',
    'workflow' => 'test_workflow',
  ], 'Save configuration');
}