Skip to content

Commit 86452a1

Browse files
committed
All node command sare relative and other refacvtorings
- Removed session:node:* commands in favor of node:* commands
1 parent ab95f27 commit 86452a1

Some content is hidden

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

47 files changed

+282
-334
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/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"

features/node_references.feature

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Feature: Show node references
99

1010
Scenario: List weak references
1111
Given the current node is "/tests_general_base/idExample/jcr:content/weakreference_target"
12-
And I execute the "node:references --no-ansi" command
12+
And I execute the "node:references . --no-ansi" command
1313
Then the command should not fail
1414
And I should see a table containing the following rows:
1515
| Type | Property | Node Path |
@@ -18,15 +18,15 @@ Feature: Show node references
1818

1919
Scenario: List named weak references
2020
Given the current node is "/tests_general_base/idExample/jcr:content/weakreference_target"
21-
And I execute the "node:references ref2 --no-ansi" command
21+
And I execute the "node:references . ref2 --no-ansi" command
2222
Then the command should not fail
2323
And I should see a table containing the following rows:
2424
| Type | Property | Node Path |
2525
| weak | ref2 | /tests_general_base/idExample/jcr:content/weakreference_target |
2626

2727
Scenario: List strong references
2828
Given the current node is "/tests_general_base/idExample"
29-
And I execute the "node:references --no-ansi" command
29+
And I execute the "node:references . --no-ansi" command
3030
Then the command should not fail
3131
And I should see a table containing the following rows:
3232
| Type | Property | Node Path |

features/node_remove.feature

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

1010
Scenario: Remove a node
1111
Given the current node is "/tests_general_base"
12-
And I execute the "node:remove" command
12+
And I execute the "node:remove ." command
1313
Then the command should not fail
1414
And I save the session
1515
And there should not exist a node at "/tests_general_base"

features/node_rename.feature

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

1010
Scenario: Rename a node
1111
Given the current node is "/tests_general_base/idExample"
12-
And I execute the "node:rename foobar" command
12+
And I execute the "node:rename . foobar" command
1313
And I save the session
1414
Then the command should not fail
1515
And there should exist a node at "/tests_general_base/foobar"

0 commit comments

Comments
 (0)