public function LingotekAccountFormTest::testAccountDetails in Lingotek Translation 3.7.x
Same name and namespace in other branches
- 8.2 tests/src/Functional/Form/LingotekAccountFormTest.php \Drupal\Tests\lingotek\Functional\Form\LingotekAccountFormTest::testAccountDetails()
- 4.0.x tests/src/Functional/Form/LingotekAccountFormTest.php \Drupal\Tests\lingotek\Functional\Form\LingotekAccountFormTest::testAccountDetails()
- 3.0.x tests/src/Functional/Form/LingotekAccountFormTest.php \Drupal\Tests\lingotek\Functional\Form\LingotekAccountFormTest::testAccountDetails()
- 3.1.x tests/src/Functional/Form/LingotekAccountFormTest.php \Drupal\Tests\lingotek\Functional\Form\LingotekAccountFormTest::testAccountDetails()
- 3.2.x tests/src/Functional/Form/LingotekAccountFormTest.php \Drupal\Tests\lingotek\Functional\Form\LingotekAccountFormTest::testAccountDetails()
- 3.3.x tests/src/Functional/Form/LingotekAccountFormTest.php \Drupal\Tests\lingotek\Functional\Form\LingotekAccountFormTest::testAccountDetails()
- 3.4.x tests/src/Functional/Form/LingotekAccountFormTest.php \Drupal\Tests\lingotek\Functional\Form\LingotekAccountFormTest::testAccountDetails()
- 3.5.x tests/src/Functional/Form/LingotekAccountFormTest.php \Drupal\Tests\lingotek\Functional\Form\LingotekAccountFormTest::testAccountDetails()
- 3.6.x tests/src/Functional/Form/LingotekAccountFormTest.php \Drupal\Tests\lingotek\Functional\Form\LingotekAccountFormTest::testAccountDetails()
- 3.8.x tests/src/Functional/Form/LingotekAccountFormTest.php \Drupal\Tests\lingotek\Functional\Form\LingotekAccountFormTest::testAccountDetails()
Test that we can disconnect.
File
- tests/
src/ Functional/ Form/ LingotekAccountFormTest.php, line 17
Class
- LingotekAccountFormTest
- Tests the Lingotek account form.
Namespace
Drupal\Tests\lingotek\Functional\FormCode
public function testAccountDetails() {
$this
->drupalGet('admin/lingotek/settings');
$xpath = $this
->xpath('//details[@data-drupal-selector="edit-account"]//tr[@data-drupal-selector="edit-account-table-status-row"]//td[text()="Active"]');
$this
->assertIdentical(1, count($xpath), 'Status indicator found');
$xpath = $this
->xpath('//details[@data-drupal-selector="edit-account"]//tr[@data-drupal-selector="edit-account-table-plan-row"]//td[text()="No"]');
$this
->assertIdentical(1, count($xpath), 'Enterprise plan indicator found');
$xpath = $this
->xpath('//details[@data-drupal-selector="edit-account"]//tr[@data-drupal-selector="edit-account-table-activation-row"]//td[text()="testUser@example.com"]');
$this
->assertIdentical(1, count($xpath), 'Activation Name found');
}