You are here

public function LingotekNodeBulkTranslationTest::testAddContentLinkPresent in Lingotek Translation 8.2

Same name and namespace in other branches
  1. 4.0.x tests/src/Functional/LingotekNodeBulkTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeBulkTranslationTest::testAddContentLinkPresent()
  2. 3.0.x tests/src/Functional/LingotekNodeBulkTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeBulkTranslationTest::testAddContentLinkPresent()
  3. 3.1.x tests/src/Functional/LingotekNodeBulkTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeBulkTranslationTest::testAddContentLinkPresent()
  4. 3.2.x tests/src/Functional/LingotekNodeBulkTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeBulkTranslationTest::testAddContentLinkPresent()
  5. 3.3.x tests/src/Functional/LingotekNodeBulkTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeBulkTranslationTest::testAddContentLinkPresent()
  6. 3.4.x tests/src/Functional/LingotekNodeBulkTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeBulkTranslationTest::testAddContentLinkPresent()
  7. 3.5.x tests/src/Functional/LingotekNodeBulkTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeBulkTranslationTest::testAddContentLinkPresent()
  8. 3.6.x tests/src/Functional/LingotekNodeBulkTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeBulkTranslationTest::testAddContentLinkPresent()
  9. 3.7.x tests/src/Functional/LingotekNodeBulkTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeBulkTranslationTest::testAddContentLinkPresent()
  10. 3.8.x tests/src/Functional/LingotekNodeBulkTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeBulkTranslationTest::testAddContentLinkPresent()
1 method overrides LingotekNodeBulkTranslationTest::testAddContentLinkPresent()
LingotekNodeBulkViewsTranslationTest::testAddContentLinkPresent in tests/src/Functional/Views/LingotekNodeBulkViewsTranslationTest.php

File

tests/src/Functional/LingotekNodeBulkTranslationTest.php, line 506

Class

LingotekNodeBulkTranslationTest
Tests translating a node using the bulk management form.

Namespace

Drupal\Tests\lingotek\Functional

Code

public function testAddContentLinkPresent() {

  // Login as admin.
  $this
    ->drupalLogin($this->rootUser);

  // Place the actions and title block.
  $this
    ->drupalPlaceBlock('local_actions_block');
  $this
    ->goToContentBulkManagementForm();

  // There should be a link for adding content.
  $this
    ->clickLink('Add content');

  // And we should have been redirected to the article form.
  $this
    ->assertUrl(Url::fromRoute('node.add', [
    'node_type' => 'article',
  ]));
}