protected function BundleLessEntityTest::setUp in GraphQL 8.3
Overrides GraphQLContentTestBase::setUp
File
- modules/
graphql_core/ tests/ src/ Kernel/ Entity/ BundleLessEntityTest.php, line 21
Class
- BundleLessEntityTest
- Tests for bundle-less entities.
Namespace
Drupal\Tests\graphql_core\Kernel\EntityCode
protected function setUp() {
parent::setUp();
FieldStorageConfig::create([
'field_name' => 'field_test',
'entity_type' => 'user',
'type' => 'boolean',
'cardinality' => 1,
])
->save();
FieldConfig::create([
'entity_type' => 'user',
'bundle' => 'user',
'field_name' => 'field_test',
'label' => 'Test',
])
->save();
}