UserProtectKernelTestBase.php in User protect 8
Namespace
Drupal\Tests\userprotect\KernelFile
tests/src/Kernel/UserProtectKernelTestBase.phpView source
<?php
namespace Drupal\Tests\userprotect\Kernel;
use Drupal\KernelTests\Core\Entity\EntityKernelTestBase;
use Drupal\Tests\userprotect\Traits\UserProtectCreationTrait;
/**
* Provides a base class for User Protect kernel tests.
*/
abstract class UserProtectKernelTestBase extends EntityKernelTestBase {
use UserProtectCreationTrait;
/**
* {@inheritdoc}
*/
public static $modules = [
'userprotect',
];
/**
* {@inheritdoc}
*/
protected function setUp() {
parent::setUp();
$this
->installSchema('user', [
'users_data',
]);
}
}
Classes
Name | Description |
---|---|
UserProtectKernelTestBase | Provides a base class for User Protect kernel tests. |