You are here

protected function BuildHooksKernelTestBase::setUp in Build Hooks 3.x

Same name and namespace in other branches
  1. 8.2 tests/src/Kernel/BuildHooksKernelTestBase.php \Drupal\Tests\build_hooks\Kernel\BuildHooksKernelTestBase::setUp()

Overrides KernelTestBase::setUp

6 calls to BuildHooksKernelTestBase::setUp()
BitbucketBuildHooksTest::setUp in modules/build_hooks_bitbucket/tests/src/Kernel/BitbucketBuildHooksTest.php
CircleBuildHookTest::setUp in modules/build_hooks_circleci/tests/src/Kernel/CircleBuildHookTest.php
DeploymentStorageHandlerTest::setUp in tests/src/Kernel/DeploymentStorageHandlerTest.php
DeploymentValidationTest::setUp in tests/src/Kernel/DeploymentValidationTest.php
GithubBuildHooksTest::setUp in modules/build_hooks_github/tests/src/Kernel/GithubBuildHooksTest.php

... See full list

6 methods override BuildHooksKernelTestBase::setUp()
BitbucketBuildHooksTest::setUp in modules/build_hooks_bitbucket/tests/src/Kernel/BitbucketBuildHooksTest.php
CircleBuildHookTest::setUp in modules/build_hooks_circleci/tests/src/Kernel/CircleBuildHookTest.php
DeploymentStorageHandlerTest::setUp in tests/src/Kernel/DeploymentStorageHandlerTest.php
DeploymentValidationTest::setUp in tests/src/Kernel/DeploymentValidationTest.php
GithubBuildHooksTest::setUp in modules/build_hooks_github/tests/src/Kernel/GithubBuildHooksTest.php

... See full list

File

tests/src/Kernel/BuildHooksKernelTestBase.php, line 51

Class

BuildHooksKernelTestBase
Defines a base kernel test class for Build Hooks module.

Namespace

Drupal\Tests\build_hooks\Kernel

Code

protected function setUp() {
  parent::setUp();
  $this
    ->installConfig('build_hooks');
  $this
    ->installConfig('system');
  $this
    ->installEntitySchema('entity_test');
  $this
    ->installEntitySchema('build_hooks_deployment');
  $this
    ->config('build_hooks.settings')
    ->set('logging.entity_types', [
    'entity_test' => 'entity_test',
  ])
    ->save();
}