You are here

public function DevelGenerateBrowserTest::testDevelGenerateUsers in Devel 4.x

Same name and namespace in other branches
  1. 8.3 devel_generate/tests/src/Functional/DevelGenerateBrowserTest.php \Drupal\Tests\devel_generate\Functional\DevelGenerateBrowserTest::testDevelGenerateUsers()

Tests generating users.

File

devel_generate/tests/src/Functional/DevelGenerateBrowserTest.php, line 21

Class

DevelGenerateBrowserTest
Tests the logic to generate data.

Namespace

Drupal\Tests\devel_generate\Functional

Code

public function testDevelGenerateUsers() {
  $edit = [
    'num' => 4,
  ];
  $this
    ->drupalPostForm('admin/config/development/generate/user', $edit, 'Generate');
  $this
    ->assertText('4 users created.');
  $this
    ->assertText('Generate process complete.');
}