Skip to content

Commit 00abb1d

Browse files
Merge pull request #215 from owncloud/check-CI-20180724
Fixup refactored core gherkin steps
2 parents 2c35b92 + 65a8230 commit 00abb1d

File tree

6 files changed

+11
-11
lines changed

6 files changed

+11
-11
lines changed

tests/acceptance/features/apiNotifications/delete-notifications.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Feature: delete-notifications
33

44
Background:
55
Given user "test1" has been created
6-
And using API version "2"
6+
And using OCS API version "2"
77

88
Scenario: Delete first notification
99
When user "test1" is sent a notification

tests/acceptance/features/apiNotifications/email-notifications.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Feature: notifications-content
55
Given these users have been created:
66
|username|password|displayname|email |
77
|user1 |1234 |User One |u1@oc.com.np|
8-
And using API version "2"
8+
And using OCS API version "2"
99

1010
Scenario: Create notification
1111
When the user "user1" sets the email notification option to "always" using the API

tests/acceptance/features/apiNotifications/notifications-content.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Feature: notifications-content
33

44
Background:
55
Given user "test1" has been created
6-
And using API version "2"
6+
And using OCS API version "2"
77

88
Scenario: Create notification
99
When user "test1" is sent a notification with

tests/acceptance/features/apiNotifications/statuscodes.feature

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,23 @@ Feature: statuscodes
44
Background:
55
Given user "test1" has been created
66
And as user "test1"
7-
And using API version "2"
7+
And using OCS API version "2"
88

99
Scenario: Status code when reading notifications with notifiers and without notifications
10-
When the user sends HTTP method "GET" to API endpoint "/apps/notifications/api/v1/notifications?format=json"
10+
When the user sends HTTP method "GET" to OCS API endpoint "/apps/notifications/api/v1/notifications?format=json"
1111
Then the HTTP status code should be "200"
1212
And the list of notifications should have 0 entries
1313

1414
Scenario: Status code when reading notifications with notifiers and notification
1515
Given user "test1" has been sent a notification
16-
When the user sends HTTP method "GET" to API endpoint "/apps/notifications/api/v1/notifications?format=json"
16+
When the user sends HTTP method "GET" to OCS API endpoint "/apps/notifications/api/v1/notifications?format=json"
1717
Then the HTTP status code should be "200"
1818
And the list of notifications should have 1 entry
1919

2020
Scenario: Status code when reading notifications with notifiers and notifications
2121
Given user "test1" has been sent a notification
2222
And user "test1" has been sent a notification
2323
And user "test1" has been sent a notification
24-
When the user sends HTTP method "GET" to API endpoint "/apps/notifications/api/v1/notifications?format=json"
24+
When the user sends HTTP method "GET" to OCS API endpoint "/apps/notifications/api/v1/notifications?format=json"
2525
Then the HTTP status code should be "200"
2626
And the list of notifications should have 3 entries

tests/acceptance/features/bootstrap/NotificationsContext.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class NotificationsContext implements Context {
5151
* @return void
5252
*/
5353
public function hasBeenSentANotification($user) {
54-
$this->featureContext->userSendingTo(
54+
$this->featureContext->userSendsToOcsApiEndpoint(
5555
$user,
5656
'POST', '/apps/testing/api/v1/notifications'
5757
);
@@ -81,7 +81,7 @@ public function hasBeenSentANotificationWith($user, TableNode $formData) {
8181
}
8282
$formData = new TableNode($rows);
8383

84-
$this->featureContext->userSendsHTTPMethodToAPIEndpointWithBody(
84+
$this->featureContext->userSendsHTTPMethodToOcsApiEndpointWithBody(
8585
$this->featureContext->getAdminUsername(),
8686
'POST', '/apps/testing/api/v1/notifications', $formData
8787
);
@@ -156,7 +156,7 @@ public function deleteNotification($user, $firstOrLast) {
156156
reset($lastNotificationIds)
157157
);
158158
}
159-
$this->featureContext->userSendingTo(
159+
$this->featureContext->userSendsToOcsApiEndpoint(
160160
$user,
161161
'DELETE',
162162
'/apps/notifications/api/v1/notifications/' . $this->notificationsCoreContext->getDeletedNotification()

tests/acceptance/features/webUINotifications/displayNotificationsOnWebUI.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ So that I can stay informed
1111
|user1 |1234 |User One |u1@oc.com.np|
1212
And the user has browsed to the login page
1313
And the user has logged in with username "user1" and password "1234" using the webUI
14-
And using API version "2"
14+
And using OCS API version "2"
1515

1616
Scenario: Create notifications
1717
When user "user1" is sent a notification with

0 commit comments

Comments
 (0)