You are here

protected function RecentlyReadBlockTest::recentlyReadNodeCreate in Recently Read 8

Helper method for creating nodes.

1 call to RecentlyReadBlockTest::recentlyReadNodeCreate()
RecentlyReadBlockTest::testRecentlyReadBlock in tests/src/Functional/RecentlyReadBlockTest.php
Tests Recently read block for authenticated and anonymous user.

File

tests/src/Functional/RecentlyReadBlockTest.php, line 156

Class

RecentlyReadBlockTest
Testing Recently Read Block.

Namespace

Drupal\Tests\recently_read\Functional

Code

protected function recentlyReadNodeCreate($settings) {
  $this
    ->drupalCreateNode($settings);
  if (isset($settings['title'])) {
    return $this
      ->drupalGetNodeByTitle($settings['title']);
  }
  return NULL;
}