Loading core/modules/workspaces/tests/src/Kernel/WorkspaceCRUDTest.php +4 −0 Original line number Diff line number Diff line Loading @@ -189,6 +189,10 @@ public function testDeletingWorkspaces() { // from the "workspace.delete" state entry. \Drupal::service('cron')->run(); // Check that the actual node revisions were deleted as well. $node_storage = $this->entityTypeManager->getStorage('node'); $this->assertEmpty($node_storage->loadMultipleRevisions(array_keys($associated_revisions))); // 'workspace_2 'is empty now. $associated_revisions = $workspace_association->getAssociatedRevisions($workspace_2->id(), 'node', [$workspace_2_node_1->id()]); $this->assertCount(0, $associated_revisions); Loading Loading
core/modules/workspaces/tests/src/Kernel/WorkspaceCRUDTest.php +4 −0 Original line number Diff line number Diff line Loading @@ -189,6 +189,10 @@ public function testDeletingWorkspaces() { // from the "workspace.delete" state entry. \Drupal::service('cron')->run(); // Check that the actual node revisions were deleted as well. $node_storage = $this->entityTypeManager->getStorage('node'); $this->assertEmpty($node_storage->loadMultipleRevisions(array_keys($associated_revisions))); // 'workspace_2 'is empty now. $associated_revisions = $workspace_association->getAssociatedRevisions($workspace_2->id(), 'node', [$workspace_2_node_1->id()]); $this->assertCount(0, $associated_revisions); Loading