You are here

function EFQViewsNodeLinkTestCase::testNodeLink in EntityFieldQuery Views Backend 7

File

tests/efq_views.test, line 627
Tests for EFQ Views query features.

Class

EFQViewsNodeLinkTestCase

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