You are here

protected function LingotekFunctionalTest::connectToLingotek in Lingotek Translation 7.4

Same name and namespace in other branches
  1. 7.7 tests/lingotek.base.test \LingotekFunctionalTest::connectToLingotek()
  2. 7.2 tests/lingotek.base.test \LingotekFunctionalTest::connectToLingotek()
  3. 7.3 tests/lingotek.base.test \LingotekFunctionalTest::connectToLingotek()
  4. 7.5 tests/lingotek.base.test \LingotekFunctionalTest::connectToLingotek()
  5. 7.6 tests/lingotek.base.test \LingotekFunctionalTest::connectToLingotek()

Sets up the association between this test instance and the Lingotek system.

1 call to LingotekFunctionalTest::connectToLingotek()
LingotekFunctionalTest::setUp in tests/lingotek.base.test
Does general setup for all Lingotek tests.

File

tests/lingotek.base.test, line 79
Declares a parent class to be used with Lingotek automated tests.

Class

LingotekFunctionalTest
A parent class for Lingotek autoamted tests.

Code

protected function connectToLingotek() {
  $this
    ->drupalLogin($this->privileged_user);
  $form_values = array(
    'lingotek_login_id' => self::LINGOTEK_USERNAME,
    'lingotek_password' => self::LINGOTEK_PASSWORD,
  );
  $this
    ->drupalPost(LINGOTEK_MENU_LANG_BASE_URL, $form_values, t('Save configuration'));
  $this
    ->drupalLogout();
}