protected function LingotekTestBase::connectToLingotek in Lingotek Translation 8
2 calls to LingotekTestBase::connectToLingotek()
- LingotekAccountDisconnectFormTest::testAccountDisconnect in src/
Tests/ Form/ LingotekAccountDisconnectFormTest.php - Test that we can disconnect.
- LingotekTestBase::setUp in src/
Tests/ LingotekTestBase.php - Sets up a Drupal site for running functional and integration tests.
File
- src/
Tests/ LingotekTestBase.php, line 78
Class
- LingotekTestBase
- Base class for Lingotek test. Performs authorization of the account.
Namespace
Drupal\lingotek\TestsCode
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');
}