You are here

protected function SmartReadMoreLinkTest::paragraphs in Smart read more link 8

2 calls to SmartReadMoreLinkTest::paragraphs()
SmartReadMoreLinkTest::testCreateArticleWithLongBody in tests/src/Functional/SmartReadMoreLinkTest.php
SmartReadMoreLinkTest::testCreateArticleWithSummary in tests/src/Functional/SmartReadMoreLinkTest.php

File

tests/src/Functional/SmartReadMoreLinkTest.php, line 139

Class

SmartReadMoreLinkTest
Functional tests of smart_read_more_link module.

Namespace

Drupal\Tests\smart_read_more_link\Functional

Code

protected function paragraphs($count = 12) {
  $result = [];
  for ($i = 0; $i < $count; $i++) {
    $result[] = $this
      ->getRandomGenerator()
      ->sentences(10);
  }
  return $result;
}