You are here

protected function WorkspaceNormalizerTest::createWorkspace in Replication 8.2

Creates a custom workspace entity.

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

File

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

Class

WorkspaceNormalizerTest
Tests the workspace serialization format.

Namespace

Drupal\Tests\replication\Unit\Normalizer

Code

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