You are here

function EntityFieldQueryViewsNodeLinkTest::testNodeLink in EntityFieldQuery Views Backend 8

File

src/Tests/EntityFieldQueryViewsNodeLinkTest.php, line 36
Tests for EntityFieldQuery Views query features.

Class

EntityFieldQueryViewsNodeLinkTest
Class EntityFieldQueryViewsNodeLinkTest

Namespace

Drupal\efq_views\Tests

Code

function testNodeLink() {
  $node = $this
    ->drupalCreateNode();
  $account = $this
    ->drupalCreateUser(array(
    'bypass node access',
  ));
  $this
    ->drupalLogin($account);
  $this
    ->runView();
  $this
    ->assertRaw('Edit link:');
  $this
    ->clickLink('edit');
  $this
    ->assertFieldByName('title', $node->title);
}