You are here

public function ExporterTest::testExcludedTypes in Tome 8

@covers \Drupal\tome_sync\Exporter::getContentToExport

File

modules/tome_sync/tests/src/Kernel/ExporterTest.php, line 205

Class

ExporterTest
Tests that the exporter works.

Namespace

Drupal\Tests\tome_sync\Kernel

Code

public function testExcludedTypes() {
  $this
    ->enableModules([
    'content_moderation',
    'workflows',
  ]);
  $this
    ->installEntitySchema('content_moderation_state');
  $this
    ->assertArrayNotHasKey('content_moderation_state', \Drupal::service('tome_sync.exporter')
    ->getContentToExport());
}