We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c2bdaa9 commit 437b829Copy full SHA for 437b829
tests/src/Functional/ApiDocsAdminTest.php
@@ -24,6 +24,7 @@
24
use Drupal\Core\Url;
25
use Drupal\Tests\BrowserTestBase;
26
use Drupal\Tests\TestFileCreationTrait;
27
+use Drupal\TestTools\Random;
28
use Drupal\file\Entity\File;
29
use Drupal\file\FileInterface;
30
@@ -129,7 +130,7 @@ public function testApiDocAdministration() {
129
130
131
$page = $this->getSession()->getPage();
132
$random_name = $this->randomMachineName();
- $random_description = $this->randomGenerator->sentences(5);
133
+ $random_description = Random::getGenerator()->sentences(5);
134
$page->fillField('title[0][value]', $random_name);
135
$page->fillField('body[0][value]', $random_description);
136
$page->fillField('field_apidoc_spec_file_source', 'file');
0 commit comments