You are here

protected function CommonTest::setUp in Scheduled Publish 8

Set the default field storage backend for fields created during tests.

Overrides FieldKernelTestBase::setUp

File

tests/src/Kernel/CommonTest.php, line 41

Class

CommonTest
Class CommonTest

Namespace

Drupal\Tests\scheduled_publish\Kernel

Code

protected function setUp() {
  parent::setUp();
  $this
    ->installConfig([
    'field',
    'system',
    'content_moderation',
    'scheduled_publish',
  ]);
  $this
    ->installEntitySchema('node');
  $this
    ->installSchema('node', 'node_access');
  $this
    ->installEntitySchema('user');
  $this
    ->installEntitySchema('content_moderation_state');
  $this
    ->installConfig('content_moderation');
  $this->scheduledUpdateService = \Drupal::service('scheduled_publish.update');
  $this
    ->createNodeType();
}