public function UsersJwtRequestTest::setUp in JSON Web Token Authentication (JWT) 8
Overrides KernelTestBase::setUp
File
- modules/
users_jwt/ tests/ src/ Kernel/ UsersJwtRequestTest.php, line 37
Class
- UsersJwtRequestTest
- Tests JWT config schema.
Namespace
Drupal\Tests\users_jwt\KernelCode
public function setUp() {
parent::setUp();
$this
->installSchema('system', 'sequences');
$this
->installEntitySchema('user');
$this
->installSchema('user', [
'users_data',
]);
$this
->installConfig([
'users_jwt',
]);
$account = $this
->createUser([
'access content',
]);
$this
->setCurrentUser($account);
$this->testUser = $account;
}