You are here

public function LingotekAccountFormTest::testAccountDetails in Lingotek Translation 8.2

Same name and namespace in other branches
  1. 4.0.x tests/src/Functional/Form/LingotekAccountFormTest.php \Drupal\Tests\lingotek\Functional\Form\LingotekAccountFormTest::testAccountDetails()
  2. 3.0.x tests/src/Functional/Form/LingotekAccountFormTest.php \Drupal\Tests\lingotek\Functional\Form\LingotekAccountFormTest::testAccountDetails()
  3. 3.1.x tests/src/Functional/Form/LingotekAccountFormTest.php \Drupal\Tests\lingotek\Functional\Form\LingotekAccountFormTest::testAccountDetails()
  4. 3.2.x tests/src/Functional/Form/LingotekAccountFormTest.php \Drupal\Tests\lingotek\Functional\Form\LingotekAccountFormTest::testAccountDetails()
  5. 3.3.x tests/src/Functional/Form/LingotekAccountFormTest.php \Drupal\Tests\lingotek\Functional\Form\LingotekAccountFormTest::testAccountDetails()
  6. 3.4.x tests/src/Functional/Form/LingotekAccountFormTest.php \Drupal\Tests\lingotek\Functional\Form\LingotekAccountFormTest::testAccountDetails()
  7. 3.5.x tests/src/Functional/Form/LingotekAccountFormTest.php \Drupal\Tests\lingotek\Functional\Form\LingotekAccountFormTest::testAccountDetails()
  8. 3.6.x tests/src/Functional/Form/LingotekAccountFormTest.php \Drupal\Tests\lingotek\Functional\Form\LingotekAccountFormTest::testAccountDetails()
  9. 3.7.x tests/src/Functional/Form/LingotekAccountFormTest.php \Drupal\Tests\lingotek\Functional\Form\LingotekAccountFormTest::testAccountDetails()
  10. 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\Form

Code

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');
}