You are here

protected function WorkspaceTestUtilities::getPointerToWorkspace in Workspace 8

Returns a pointer to the specified workspace.

Parameters

\Drupal\multiversion\Entity\WorkspaceInterface $workspace: The workspace for which we want a pointer.

Return value

\Drupal\workspace\Entity\WorkspacePointerInterface The pointer to the provided workspace.

7 calls to WorkspaceTestUtilities::getPointerToWorkspace()
ReplicationSettingsTest::testPullReplicationSettings in tests/src/Functional/ReplicationSettingsTest.php
Verify pull replication settings using the published filter as an example.
ReplicationSettingsTest::testPushReplicationSettings in tests/src/Functional/ReplicationSettingsTest.php
Verify push replication settings using the published filter as an example.
ReplicatorAliasTest::testReplicationAlias in tests/src/Functional/ReplicatorAliasTest.php
Verifies that a user can edit anything in a workspace with a specific perm.
ReplicatorTest::testReplication in tests/src/Functional/ReplicatorTest.php
Test replication.
WorkspaceBypassTest::testBypassOwnWorkspace in tests/src/Functional/WorkspaceBypassTest.php
Verifies that a user can edit anything in a workspace they own.

... See full list

File

tests/src/Functional/WorkspaceTestUtilities.php, line 189

Class

WorkspaceTestUtilities
Utility methods for use in BrowserTestBase tests.

Namespace

Drupal\Tests\workspace\Functional

Code

protected function getPointerToWorkspace(WorkspaceInterface $workspace) {
  return WorkspacePointer::loadFromWorkspace($workspace);
}