You are here

UserProtectKernelTestBase.php in User protect 8

File

tests/src/Kernel/UserProtectKernelTestBase.php
View 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

Namesort descending Description
UserProtectKernelTestBase Provides a base class for User Protect kernel tests.