public function deleteWorkspaceAction(SessionManager $repository, $workspace, Request $request)
 {
     $currentWorkspace = $repository->getWorkspaceManager();
     $currentWorkspace->deleteWorkspace($workspace);
     return $this->buildResponse('Workspace deleted', 0);
 }
 public function testItShouldCallGetWorkspace()
 {
     $session = $this->mock('\\PHPCRAPI\\PHPCR\\Session')->getWorkspace($this->mock('\\PHPCRAPI\\PHPCR\\Workspace', null), $this->once())->new($this->repository, 'default');
     $manager = new SessionManager($session);
     $this->assertTrue($manager->getWorkspaceManager() instanceof WorkspaceManager);
 }