You are here

protected function GraphQLContentTestBase::setUp in GraphQL 8.3

Overrides GraphQLCoreTestBase::setUp

6 calls to GraphQLContentTestBase::setUp()
BundleLessEntityTest::setUp in modules/graphql_core/tests/src/Kernel/Entity/BundleLessEntityTest.php
EntityByIdTest::setUp in modules/graphql_core/tests/src/Kernel/Entity/EntityByIdTest.php
EntityFieldValueTest::setUp in modules/graphql_core/tests/src/Kernel/Entity/EntityFieldValueTest.php
EntityMutationTest::setUp in modules/graphql_core/tests/src/Kernel/EntityMutation/EntityMutationTest.php
EntityQueryTest::setUp in modules/graphql_core/tests/src/Kernel/EntityQuery/EntityQueryTest.php

... See full list

6 methods override GraphQLContentTestBase::setUp()
BundleLessEntityTest::setUp in modules/graphql_core/tests/src/Kernel/Entity/BundleLessEntityTest.php
EntityByIdTest::setUp in modules/graphql_core/tests/src/Kernel/Entity/EntityByIdTest.php
EntityFieldValueTest::setUp in modules/graphql_core/tests/src/Kernel/Entity/EntityFieldValueTest.php
EntityMutationTest::setUp in modules/graphql_core/tests/src/Kernel/EntityMutation/EntityMutationTest.php
EntityQueryTest::setUp in modules/graphql_core/tests/src/Kernel/EntityQuery/EntityQueryTest.php

... See full list

File

modules/graphql_core/tests/src/Kernel/GraphQLContentTestBase.php, line 48

Class

GraphQLContentTestBase
Base class for node based tests.

Namespace

Drupal\Tests\graphql_core\Kernel

Code

protected function setUp() {
  parent::setUp();
  $this
    ->installConfig([
    'node',
    'filter',
    'text',
  ]);
  $this
    ->installEntitySchema('node');
  $this
    ->installSchema('node', 'node_access');
  $this
    ->installSchema('system', 'sequences');
  $this
    ->createContentType([
    'type' => 'test',
  ]);
  $this->container
    ->get('content_translation.manager')
    ->setEnabled('node', 'test', TRUE);
}