You are here

protected function WorkspaceNormalizerTest::createWorkspace in Replication 8

Creates a custom workspace entity.

1 call to WorkspaceNormalizerTest::createWorkspace()
WorkspaceNormalizerTest::setUp in tests/src/Kernel/Normalizer/WorkspaceNormalizerTest.php

File

tests/src/Kernel/Normalizer/WorkspaceNormalizerTest.php, line 54

Class

WorkspaceNormalizerTest
Tests the workspace serialization format.

Namespace

Drupal\Tests\replication\Kernel\Normalizer

Code

protected function createWorkspace($name) {
  return Workspace::create([
    'machine_name' => $name,
    'type' => 'basic',
  ]);
}