public function LingotekAccountTest::testHandshakePage in Lingotek Translation 8.2
Same name and namespace in other branches
- 4.0.x tests/src/Functional/LingotekAccountTest.php \Drupal\Tests\lingotek\Functional\LingotekAccountTest::testHandshakePage()
- 3.0.x tests/src/Functional/LingotekAccountTest.php \Drupal\Tests\lingotek\Functional\LingotekAccountTest::testHandshakePage()
- 3.1.x tests/src/Functional/LingotekAccountTest.php \Drupal\Tests\lingotek\Functional\LingotekAccountTest::testHandshakePage()
- 3.2.x tests/src/Functional/LingotekAccountTest.php \Drupal\Tests\lingotek\Functional\LingotekAccountTest::testHandshakePage()
- 3.3.x tests/src/Functional/LingotekAccountTest.php \Drupal\Tests\lingotek\Functional\LingotekAccountTest::testHandshakePage()
- 3.4.x tests/src/Functional/LingotekAccountTest.php \Drupal\Tests\lingotek\Functional\LingotekAccountTest::testHandshakePage()
- 3.5.x tests/src/Functional/LingotekAccountTest.php \Drupal\Tests\lingotek\Functional\LingotekAccountTest::testHandshakePage()
- 3.6.x tests/src/Functional/LingotekAccountTest.php \Drupal\Tests\lingotek\Functional\LingotekAccountTest::testHandshakePage()
- 3.7.x tests/src/Functional/LingotekAccountTest.php \Drupal\Tests\lingotek\Functional\LingotekAccountTest::testHandshakePage()
- 3.8.x tests/src/Functional/LingotekAccountTest.php \Drupal\Tests\lingotek\Functional\LingotekAccountTest::testHandshakePage()
File
- tests/
src/ Functional/ LingotekAccountTest.php, line 62
Class
- LingotekAccountTest
- Tests the Lingotek dashboard.
Namespace
Drupal\Tests\lingotek\FunctionalCode
public function testHandshakePage() {
// We avoid the redirect so we can see where the user will land for some
// seconds.
\Drupal::state()
->set('authorize_no_redirect', TRUE);
// Login as admin.
$this
->drupalLogin($this->rootUser);
// Try to navigate to the Dashboard page, and assert we are redirected.
$this
->drupalGet('admin/lingotek/setup/account');
// Fake the connection to an account in Lingotek.
$this
->clickLink('Connect Lingotek Account');
// Our fake backend generates a token, returns to the site and waits for the
// redirect.
$this
->assertText('Connecting... Please wait to be redirected');
}