You are here

protected function LingotekConnectTest::setUp in Lingotek Translation 4.0.x

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

Overrides BrowserTestBase::setUp

File

tests/src/Functional/Form/LingotekConnectTest.php, line 29

Class

LingotekConnectTest
Class for testing connecting to Lingotek.

Namespace

Drupal\Tests\lingotek\Functional\Form

Code

protected function setUp() : void {
  parent::setUp();
  \Drupal::state()
    ->set('must_remain_disconnected', TRUE);

  // Login as admin.
  $this
    ->drupalLogin($this->rootUser);
}