You are here

protected function InfiniteScrollTest::setUp in Views Infinite Scroll 8

Overrides BrowserTestBase::setUp

File

tests/src/FunctionalJavascript/InfiniteScrollTest.php, line 38

Class

InfiniteScrollTest
Test views infinite scroll.

Namespace

Drupal\Tests\views_infinite_scroll\FunctionalJavascript

Code

protected function setUp() {
  parent::setUp();
  $this
    ->createContentType([
    'type' => 'page',
  ]);

  // Create 11 nodes.
  for ($i = 1; $i <= 11; $i++) {
    $this
      ->createNode([
      'status' => TRUE,
      'type' => 'page',
    ]);
  }
}