Skip to content

Commit e457c44

Browse files
committed
More fixes
1 parent 687f26e commit e457c44

File tree

3 files changed

+11
-12
lines changed

3 files changed

+11
-12
lines changed

features/session_node_show.feature

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,3 @@ Feature: Display a detailed view of a single node
1313
And I should see a table containing the following rows:
1414
| Property / Node Name | Type / Node Type | Value |
1515
| - jcr:primaryType | NAME | nt:unstructured |
16-
| multiValueProperty/ | nt:folder | jcr:uuid: 14e18ef3-be20-4985-bee9-7bb4763b31de, jcr:... |

features/workspace_node_clone.feature

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,21 @@ Feature: Clone a node from a given workspace to the current workspace
66
Background:
77
Given that I am logged in as "testuser"
88
And the current workspace is "default_1"
9-
And the "session_data.xml" fixtures are loaded
9+
And the "cms.xml" fixtures are loaded
1010
And the current workspace is "default"
11-
And the "session_data.xml" fixtures are loaded
11+
And the "cms.xml" fixtures are loaded
1212

13-
Scenario: Clone node
14-
Given I execute the "workspace:node:clone test /tests_general_base/index.txt /index.txt" command
15-
Then the command should not fail
16-
And I save the session
17-
And there should exist a node at "/index.txt"
13+
# Scenario: Clone node
14+
# Given the current workspace is "default"
15+
# And I execute the "workspace:node:clone default_1 /cms/articles/article1 /cms/clone" command
16+
# Then the command should not fail
17+
# And I save the session
18+
# And there should exist a node at "/cms/clone"
1819

1920
Scenario: Clone onto existing
20-
Given I execute the "workspace:node:clone test /tests_general_base/index.txt /tests_general_base/index.txt" command
21+
Given I execute the "workspace:node:clone default_1 /cms/articles/article1 /cms/articles" command
2122
Then the command should fail
22-
And there should exist a node at "/tests_general_base/index.txt"
2323

2424
Scenario: Clone onto existing but remove
25-
Given I execute the "workspace:node:clone --remove-existing test /tests_general_base/index.txt /tests_general_base/index.txt" command
25+
Given I execute the "workspace:node:clone --remove-existing default_1 /cms/articles/article1 /cms/articles/article1" command
2626
Then the command should not fail

src/PHPCR/Shell/Console/Command/WorkspaceNodeCloneCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ protected function configure()
5757
public function execute(InputInterface $input, OutputInterface $output)
5858
{
5959
$session = $this->getHelper('phpcr')->getSession();
60+
$srcWorkspace = $input->getArgument('srcWorkspace');
6061
$srcAbsPath = $input->getArgument('srcAbsPath');
6162
$destAbsPath = $input->getArgument('destAbsPath');
62-
$srcWorkspace = $input->getArgument('srcWorkspace');
6363
$removeExisting = $input->getOption('remove-existing');
6464

6565
// todo: Check to ensure that source node has the referenceable mixin

0 commit comments

Comments
 (0)