You are here

protected function EntityByIdTest::setUp in GraphQL 8.3

Overrides GraphQLContentTestBase::setUp

File

modules/graphql_core/tests/src/Kernel/Entity/EntityByIdTest.php, line 31

Class

EntityByIdTest
Test entity query support in GraphQL.

Namespace

Drupal\Tests\graphql_core\Kernel\Entity

Code

protected function setUp() {
  parent::setUp();

  /** @var \Drupal\Core\Config\Entity\ConfigEntityStorageInterface $languageStorage */
  $languageStorage = $this->container
    ->get('entity_type.manager')
    ->getStorage('configurable_language');
  $language = $languageStorage
    ->create([
    'id' => $this->chineseSimplifiedLangcode,
  ]);
  $language
    ->save();
}