public function LingotekAccountTest::testAccountCreationCancelled in Lingotek Translation 3.7.x
Same name and namespace in other branches
- 8.2 tests/src/Functional/LingotekAccountTest.php \Drupal\Tests\lingotek\Functional\LingotekAccountTest::testAccountCreationCancelled()
- 3.0.x tests/src/Functional/LingotekAccountTest.php \Drupal\Tests\lingotek\Functional\LingotekAccountTest::testAccountCreationCancelled()
- 3.1.x tests/src/Functional/LingotekAccountTest.php \Drupal\Tests\lingotek\Functional\LingotekAccountTest::testAccountCreationCancelled()
- 3.2.x tests/src/Functional/LingotekAccountTest.php \Drupal\Tests\lingotek\Functional\LingotekAccountTest::testAccountCreationCancelled()
- 3.3.x tests/src/Functional/LingotekAccountTest.php \Drupal\Tests\lingotek\Functional\LingotekAccountTest::testAccountCreationCancelled()
- 3.4.x tests/src/Functional/LingotekAccountTest.php \Drupal\Tests\lingotek\Functional\LingotekAccountTest::testAccountCreationCancelled()
- 3.5.x tests/src/Functional/LingotekAccountTest.php \Drupal\Tests\lingotek\Functional\LingotekAccountTest::testAccountCreationCancelled()
- 3.6.x tests/src/Functional/LingotekAccountTest.php \Drupal\Tests\lingotek\Functional\LingotekAccountTest::testAccountCreationCancelled()
- 3.8.x tests/src/Functional/LingotekAccountTest.php \Drupal\Tests\lingotek\Functional\LingotekAccountTest::testAccountCreationCancelled()
File
- tests/
src/ Functional/ LingotekAccountTest.php, line 90
Class
- LingotekAccountTest
- Tests the Lingotek dashboard.
Namespace
Drupal\Tests\lingotek\FunctionalCode
public function testAccountCreationCancelled() {
$assert_session = $this
->assertSession();
// 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('Get started');
// This will simulate a "cancel" click, so we need to ensure we are back
// at the same page. We cannot test that we will be redirected, as it's done
// via js. There is no way on the server to know the hash part of the url.
$this
->assertUrl('/admin/lingotek/setup/account');
}