Skip to content

Commit 437b829

Browse files
committed
Updated randomGenerator method
1 parent c2bdaa9 commit 437b829

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/src/Functional/ApiDocsAdminTest.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
use Drupal\Core\Url;
2525
use Drupal\Tests\BrowserTestBase;
2626
use Drupal\Tests\TestFileCreationTrait;
27+
use Drupal\TestTools\Random;
2728
use Drupal\file\Entity\File;
2829
use Drupal\file\FileInterface;
2930

@@ -129,7 +130,7 @@ public function testApiDocAdministration() {
129130

130131
$page = $this->getSession()->getPage();
131132
$random_name = $this->randomMachineName();
132-
$random_description = $this->randomGenerator->sentences(5);
133+
$random_description = Random::getGenerator()->sentences(5);
133134
$page->fillField('title[0][value]', $random_name);
134135
$page->fillField('body[0][value]', $random_description);
135136
$page->fillField('field_apidoc_spec_file_source', 'file');

0 commit comments

Comments
 (0)