Skip to content

Commit 150cd9b

Browse files
committed
Fixed wrong assertions in tests
1 parent f2c597b commit 150cd9b

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ before_script:
88
- bash tests/bin/travis_jackrabbit.sh
99

1010
script:
11-
- phpunit --coverage-text
11+
- phpunit
1212
- php vendor/behat/behat/bin/behat
1313
- php vendor/bin/phpspec run

features/phpcr_query_update.feature

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,12 @@ Feature: Execute a a raw UPDATE query in JCR_SQL2
4040

4141
Scenario: Update single multivalue without selector
4242
Given I execute the "UPDATE [nt:unstructured] SET tags = array_replace(tags, 'Planes', 'Rockets') WHERE tags = 'Planes'" command
43+
Then the command should not fail
4344
And I save the session
4445
Then the command should not fail
4546
And I should see the following:
4647
"""
47-
1 row(s) affected
48+
2 row(s) affected
4849
"""
4950
And the node at "/cms/articles/article1" should have the property "tags" with value "Rockets" at index "0"
5051
And the node at "/cms/articles/article1" should have the property "tags" with value "Automobiles" at index "2"
@@ -66,7 +67,7 @@ Feature: Execute a a raw UPDATE query in JCR_SQL2
6667
Then the command should not fail
6768
And I should see the following:
6869
"""
69-
1 row(s) affected
70+
2 row(s) affected
7071
"""
7172
And the node at "/cms/articles/article1" should have the property "tags" with value "Trains" at index "0"
7273
And the node at "/cms/articles/article1" should have the property "tags" with value "Automobiles" at index "1"
@@ -77,7 +78,7 @@ Feature: Execute a a raw UPDATE query in JCR_SQL2
7778
Then the command should not fail
7879
And I should see the following:
7980
"""
80-
1 row(s) affected
81+
2 row(s) affected
8182
"""
8283
And the node at "/cms/articles/article1" should have the property "tags" with value "Planes" at index "0"
8384
And the node at "/cms/articles/article1" should have the property "tags" with value "Automobiles" at index "2"
@@ -89,7 +90,7 @@ Feature: Execute a a raw UPDATE query in JCR_SQL2
8990
Then the command should not fail
9091
And I should see the following:
9192
"""
92-
1 row(s) affected
93+
2 row(s) affected
9394
"""
9495
And the node at "/cms/articles/article1" should have the property "tags" with value "Planes" at index "0"
9596
And the node at "/cms/articles/article1" should have the property "tags" with value "Kite" at index "1"

0 commit comments

Comments
 (0)