You are here

GraphQLCoreTestBase.php in GraphQL 8.3

File

modules/graphql_core/tests/src/Kernel/GraphQLCoreTestBase.php
View source
<?php

namespace Drupal\Tests\graphql_core\Kernel;

use Drupal\Tests\graphql\Kernel\GraphQLTestBase;

/**
 * Test base for drupal core graphql functionality.
 */
class GraphQLCoreTestBase extends GraphQLTestBase {

  /**
   * {@inheritdoc}
   */
  public static $modules = [
    'graphql_core',
    'path_alias',
    'user',
  ];

  /**
   * {@inheritdoc}
   */
  protected function setUp() {
    parent::setUp();

    // User entity schema is required for the currentUserContext field.
    $this
      ->installEntitySchema('user');
    module_load_include('install', 'user', 'user');
    user_install();
  }

}

Classes

Namesort descending Description
GraphQLCoreTestBase Test base for drupal core graphql functionality.