You are here

public function TextimageApiTest::setUp in Textimage 8.4

Same name and namespace in other branches
  1. 8.3 tests/src/Kernel/TextimageApiTest.php \Drupal\Tests\textimage\Kernel\TextimageApiTest::setUp()

Overrides KernelTestBase::setUp

File

tests/src/Kernel/TextimageApiTest.php, line 47

Class

TextimageApiTest
Kernel tests for Textimage API.

Namespace

Drupal\Tests\textimage\Kernel

Code

public function setUp() : void {
  parent::setUp();
  $this
    ->installConfig([
    'system',
    'textimage',
    'image',
    'image_effects',
    'user',
    'file',
    'file_mdm',
    'file_mdm_font',
  ]);
  $this
    ->installSchema('system', [
    'sequences',
  ]);
  $this
    ->installEntitySchema('user');
  $this
    ->installEntitySchema('file');
  $this
    ->initTextimageTest();

  // Create an user.
  $this->testUser = $this
    ->createUser();
}