function DevelGenerateCommandsTest::testDrushGenerateUsers
Same name in other branches
- 5.x devel_generate/tests/src/Functional/DevelGenerateCommandsTest.php \Drupal\Tests\devel_generate\Functional\DevelGenerateCommandsTest::testDrushGenerateUsers()
Tests generating users.
File
-
devel_generate/
tests/ src/ Functional/ DevelGenerateCommandsTest.php, line 64
Class
- DevelGenerateCommandsTest
- Test class for the Devel Generate drush commands.
Namespace
Drupal\Tests\devel_generate\FunctionalCode
public function testDrushGenerateUsers() {
// Make sure users get created, and with correct roles.
$this->drush('devel-generate-users', [
55,
], [
'kill' => NULL,
'roles' => 'administrator',
]);
$user = User::load(55);
$this->assertTrue($user->hasRole('administrator'));
}