You are here

protected function MediaTest::setUp in Scheduled Publish 8.3

Same name and namespace in other branches
  1. 8.2 tests/src/Kernel/MediaTest.php \Drupal\Tests\scheduled_publish\Kernel\MediaTest::setUp()

Overrides MediaKernelTestBase::setUp

File

tests/src/Kernel/MediaTest.php, line 42

Class

MediaTest
Class MediaTests

Namespace

Drupal\Tests\scheduled_publish\Kernel

Code

protected function setUp() {
  parent::setUp();
  $this
    ->setInstallProfile('standard');
  $this
    ->installConfig([
    'field',
    'system',
    'content_moderation',
    'scheduled_publish',
  ]);
  $this
    ->installEntitySchema('media');
  $this
    ->installEntitySchema('file');
  $this
    ->installEntitySchema('user');
  $this
    ->installEntitySchema('content_moderation_state');
  $this
    ->installConfig('content_moderation');
  $this->scheduledUpdateService = \Drupal::service('scheduled_publish.update');
  $this
    ->createScheduledPublishField();
}