protected function GraphQLTestBase::setUp in GraphQL 8.3
Same name and namespace in other branches
- 8.4 tests/src/Kernel/GraphQLTestBase.php \Drupal\Tests\graphql\Kernel\GraphQLTestBase::setUp()
Overrides KernelTestBase::setUp
5 calls to GraphQLTestBase::setUp()
- GraphQLCoreTestBase::setUp in modules/
graphql_core/ tests/ src/ Kernel/ GraphQLCoreTestBase.php - LanguageContextTest::setUp in tests/
src/ Kernel/ Framework/ LanguageContextTest.php - PermissionsTest::setUp in tests/
src/ Kernel/ Framework/ PermissionsTest.php - ResultTest::setUp in tests/
src/ Kernel/ Framework/ ResultTest.php - SecureFieldTest::setUp in tests/
src/ Kernel/ Framework/ SecureFieldTest.php
5 methods override GraphQLTestBase::setUp()
- GraphQLCoreTestBase::setUp in modules/
graphql_core/ tests/ src/ Kernel/ GraphQLCoreTestBase.php - LanguageContextTest::setUp in tests/
src/ Kernel/ Framework/ LanguageContextTest.php - PermissionsTest::setUp in tests/
src/ Kernel/ Framework/ PermissionsTest.php - ResultTest::setUp in tests/
src/ Kernel/ Framework/ ResultTest.php - SecureFieldTest::setUp in tests/
src/ Kernel/ Framework/ SecureFieldTest.php
File
- tests/
src/ Kernel/ GraphQLTestBase.php, line 99
Class
- GraphQLTestBase
- Base class for GraphQL tests.
Namespace
Drupal\Tests\graphql\KernelCode
protected function setUp() {
parent::setUp();
$this
->injectTypeSystemPluginManagers($this->container);
$this
->injectAccount();
$this
->installConfig('system');
$this
->installConfig('graphql');
$this
->mockSchema('default');
$this
->installEntitySchema('configurable_language');
$this
->installConfig([
'language',
]);
$this->container
->get('language_negotiator')
->setCurrentUser($this->accountProphecy
->reveal());
ConfigurableLanguage::create([
'id' => 'fr',
'weight' => 1,
])
->save();
}