Skip to content

Commit d16fe4b

Browse files
committed
Merge pull request #23 from phpcr/relative_path_and_command_reorg
Relative path and command reorg
2 parents daee385 + e1aff8c commit d16fe4b

File tree

105 files changed

+448
-449
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

105 files changed

+448
-449
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@ before_script:
1313
script:
1414
- phpunit --coverage-text
1515
- php vendor/behat/behat/bin/behat
16+
- php vendor/bin/phpspec run

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
"symfony/process": "2.3.*",
1515
"symfony/filesystem": "2.3.*",
1616
"phpunit/phpunit": "~3.7.28",
17-
"behat/behat": "~2.5"
17+
"behat/behat": "~2.5",
18+
"phpspec/phpspec": "2.0"
1819
},
1920
"license": "MIT",
2021
"authors": [

features/workspace_node_clone.feature renamed to features/node_clone.feature

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,19 @@ Feature: Clone a node from a given workspace to the current workspace
1212

1313
Scenario: Clone node
1414
Given the current workspace is "default"
15-
And I execute the "workspace:node:clone default_1 /cms/articles/article1 /cms/clone" command
15+
And I execute the "node:clone /cms/articles/article1 /cms/clone default_1" command
1616
Then the command should not fail
1717
And I save the session
1818
And there should exist a node at "/cms/clone"
1919

2020
Scenario: Clone onto existing
21-
Given I execute the "workspace:node:clone default_1 /cms/articles/article1 /cms/articles" command
21+
Given I execute the "node:clone /cms/articles/article1 /cms/articles default_1" command
2222
Then the command should fail
2323
And I should see the following:
2424
"""
2525
Node already exists at destination
2626
"""
2727

2828
Scenario: Clone onto existing but remove
29-
Given I execute the "workspace:node:clone --remove-existing default_1 /cms/articles/article1 /cms/articles/article1" command
29+
Given I execute the "node:clone --remove-existing /cms/articles/article1 /cms/articles/article1 default_1" command
3030
Then the command should not fail

features/workspace_node_copy.feature renamed to features/node_copy.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ Feature: Copy a node from a given workspace to the current workspace
1111
And I purge the current workspace
1212

1313
Scenario: Copy node from a different workspace
14-
Given I execute the "workspace:node:copy /tests_general_base/index.txt /index.txt default_1" command
14+
Given I execute the "node:copy /tests_general_base/index.txt /index.txt default_1" command
1515
Then the command should not fail
1616
And there should exist a node at "/index.txt"
1717

1818
Scenario: Copy node in the same workspace
19-
And I execute the "workspace:node:copy /tests_general_base/index.txt /tests_general_base/index.txt.2" command
19+
Given I execute the "node:copy /tests_general_base/index.txt /tests_general_base/index.txt.2" command
2020
Then the command should not fail
2121
And I save the session
2222
And there should exist a node at "/tests_general_base/index.txt.2"

features/node_corresponding.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ Feature: Display the path of any corresponding node in a given workspace
1111
And the "session_data.xml" fixtures are loaded
1212
And the current workspace is "default"
1313

14-
Scenario: Rename a node
14+
Scenario: Show corresponding nodes
1515
Given the current node is "/tests_general_base/idExample"
16-
And I execute the "node:corresponding default" command
16+
And I execute the "node:corresponding . default" command
1717
Then the command should not fail
1818
And I should see the following:
1919
"""

features/node_definition.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Feature: Show CND for node
99

1010
Scenario: Show node definition
1111
Given the current node is "/tests_general_base"
12-
And I execute the "node:definition --no-ansi" command
12+
And I execute the "node:definition daniel --no-ansi" command
1313
Then the command should fail
1414
And I should see the following:
1515
"""

features/node_info.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ Feature: Show information about node
99

1010
Scenario: Show node information
1111
Given the current node is "/tests_general_base"
12-
And I execute the "node:info --no-ansi" command
12+
And I execute the "node:info daniel --no-ansi" command
1313
Then the command should not fail
1414
And I should see the following:
1515
"""
1616
+-------------------+--------------------------------------+
17-
| Path | /tests_general_base |
17+
| Path | /tests_general_base/daniel |
1818
| UUID | N/A |
1919
| Index | 1 |
2020
| Primary node type | nt:unstructured |

features/node_lifecycle_follow_transition.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Feature: Follow the given lifecycle transition on the current node
99

1010
Scenario: Follow lifecycle transition
1111
Given the current node is "/tests_general_base"
12-
And I execute the "node:lifecycle:follow foo" command
12+
And I execute the "node:lifecycle:follow daniel foo" command
1313
Then the command should fail
1414
And I should see the following:
1515
"""

features/node_lifecycle_list.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Feature: List the possible lifecycle transitions for the current node
99

1010
Scenario: List possible lifecycle transitions
1111
Given the current node is "/tests_general_base"
12-
And I execute the "node:lifecycle:list" command
12+
And I execute the "node:lifecycle:list daniel" command
1313
Then the command should fail
1414
And I should see the following:
1515
"""

features/node_mixin_add.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Feature: Add mixin to the current node
99

1010
Scenario: Add a mixin to the current node
1111
Given the current node is "/tests_general_base"
12-
And I execute the "node:mixin:add mix:versionable --no-ansi" command
12+
And I execute the "node:mixin:add . mix:versionable --no-ansi" command
1313
And I save the session
1414
Then the command should not fail
1515
And the node at "/tests_general_base" should have the mixin "mix:versionable"

0 commit comments

Comments
 (0)