You are here

public function LingotekNodeBulkTranslationTest::testAddContentLinkPresent in Lingotek Translation 8

File

src/Tests/LingotekNodeBulkTranslationTest.php, line 432

Class

LingotekNodeBulkTranslationTest
Tests translating a node using the bulk management form.

Namespace

Drupal\lingotek\Tests

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