Skip to content

Commit 7babd6a

Browse files
authored
Merge pull request #1640 from dunglas/english-fixes
English fixes in tests
2 parents 33995e0 + d6aaf83 commit 7babd6a

9 files changed

+22
-22
lines changed

features/bootstrap/FeatureContext.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public function dropDatabase()
102102
}
103103

104104
/**
105-
* @Given there is :nb dummy objects
105+
* @Given there are :nb dummy objects
106106
*/
107107
public function thereIsDummyObjects(int $nb)
108108
{
@@ -122,7 +122,7 @@ public function thereIsDummyObjects(int $nb)
122122
}
123123

124124
/**
125-
* @Given there is :nb dummy objects with relatedDummy
125+
* @Given there are :nb dummy objects with relatedDummy
126126
*/
127127
public function thereIsDummyObjectsWithRelatedDummy(int $nb)
128128
{
@@ -143,7 +143,7 @@ public function thereIsDummyObjectsWithRelatedDummy(int $nb)
143143
}
144144

145145
/**
146-
* @Given there is :nb dummy objects having each :nbrelated relatedDummies
146+
* @Given there are :nb dummy objects having each :nbrelated relatedDummies
147147
*/
148148
public function thereIsDummyObjectsWithRelatedDummies(int $nb, int $nbrelated)
149149
{
@@ -168,7 +168,7 @@ public function thereIsDummyObjectsWithRelatedDummies(int $nb, int $nbrelated)
168168
}
169169

170170
/**
171-
* @Given there is :nb dummy objects with dummyDate
171+
* @Given there are :nb dummy objects with dummyDate
172172
*/
173173
public function thereIsDummyObjectsWithDummyDate(int $nb)
174174
{
@@ -194,7 +194,7 @@ public function thereIsDummyObjectsWithDummyDate(int $nb)
194194
}
195195

196196
/**
197-
* @Given there is :nb dummy objects with dummyDate and dummyBoolean :bool
197+
* @Given there are :nb dummy objects with dummyDate and dummyBoolean :bool
198198
*/
199199
public function thereIsDummyObjectsWithDummyDateAndDummyBoolean(int $nb, string $bool)
200200
{
@@ -230,7 +230,7 @@ public function thereIsDummyObjectsWithDummyDateAndDummyBoolean(int $nb, string
230230
}
231231

232232
/**
233-
* @Given there is :nb dummy objects with dummyDate and relatedDummy
233+
* @Given there are :nb dummy objects with dummyDate and relatedDummy
234234
*/
235235
public function thereIsDummyObjectsWithDummyDateAndRelatedDummy(int $nb)
236236
{
@@ -258,7 +258,7 @@ public function thereIsDummyObjectsWithDummyDateAndRelatedDummy(int $nb)
258258
}
259259

260260
/**
261-
* @Given there is :nb dummy objects with dummyPrice
261+
* @Given there are :nb dummy objects with dummyPrice
262262
*/
263263
public function thereIsDummyObjectsWithDummyPrice(int $nb)
264264
{
@@ -279,7 +279,7 @@ public function thereIsDummyObjectsWithDummyPrice(int $nb)
279279
}
280280

281281
/**
282-
* @Given there is :nb dummy objects with dummyBoolean :bool
282+
* @Given there are :nb dummy objects with dummyBoolean :bool
283283
*/
284284
public function thereIsDummyObjectsWithDummyBoolean(int $nb, string $bool)
285285
{

features/doctrine/boolean_filter.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ Feature: Boolean filter on collections
55

66
@createSchema
77
Scenario: Get collection by dummyBoolean true
8-
Given there is "15" dummy objects with dummyBoolean true
9-
And there is "10" dummy objects with dummyBoolean false
8+
Given there are "15" dummy objects with dummyBoolean true
9+
And there are "10" dummy objects with dummyBoolean false
1010
When I send a "GET" request to "/dummies?dummyBoolean=true"
1111
Then the response status code should be 200
1212
And the response should be in JSON

features/doctrine/date_filter.feature

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Feature: Date filter on collections
55

66
@createSchema
77
Scenario: Get collection filtered by date
8-
Given there is "30" dummy objects with dummyDate
8+
Given there are 30 dummy objects with dummyDate
99
When I send a "GET" request to "/dummies?dummyDate[after]=2015-04-28"
1010
Then the response status code should be 200
1111
And the response should be in JSON
@@ -266,7 +266,7 @@ Feature: Date filter on collections
266266

267267
@dropSchema
268268
Scenario: Get collection filtered by association date
269-
Given there is "30" dummy objects with dummyDate and relatedDummy
269+
Given there are 30 dummy objects with dummyDate and relatedDummy
270270
When I send a "GET" request to "/dummies?relatedDummy.dummyDate[after]=2015-04-28"
271271
Then the response status code should be 200
272272
And the response should be in JSON
@@ -387,7 +387,7 @@ Feature: Date filter on collections
387387
@dropSchema
388388
@createSchema
389389
Scenario: Get collection filtered by association date
390-
Given there is "2" dummy objects with dummyDate and relatedDummy
390+
Given there are 2 dummy objects with dummyDate and relatedDummy
391391
When I send a "GET" request to "/dummies?relatedDummy.dummyDate[after]=2015-04-28"
392392
Then the response status code should be 200
393393
And the response should be in JSON

features/doctrine/multiple_filter.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ Feature: Multiple filters on collections
66
@createSchema
77
@dropSchema
88
Scenario: Get collection filtered by multiple parameters
9-
Given there is "30" dummy objects with dummyDate and dummyBoolean true
10-
And there is "20" dummy objects with dummyDate and dummyBoolean false
9+
Given there are 30 dummy objects with dummyDate and dummyBoolean true
10+
And there are 20 dummy objects with dummyDate and dummyBoolean false
1111
When I send a "GET" request to "/dummies?dummyDate[after]=2015-04-28&dummyBoolean=1"
1212
Then the response status code should be 200
1313
And the response should be in JSON

features/doctrine/numeric_filter.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Feature: Numeric filter on collections
55

66
@createSchema
77
Scenario: Get collection by id equals 9.99 which is not possible
8-
Given there is "30" dummy objects
8+
Given there are 30 dummy objects
99
When I send a "GET" request to "/dummies?id=9.99"
1010
Then the response status code should be 200
1111
And the response should be in JSON

features/doctrine/order_filter.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Feature: Order filter on collections
55

66
@createSchema
77
Scenario: Get collection ordered in ascending order on an integer property and on which order filter has been enabled in whitelist mode
8-
Given there is "30" dummy objects
8+
Given there are 30 dummy objects
99
When I send a "GET" request to "/dummies?order[id]=asc"
1010
Then the response status code should be 200
1111
And the response should be in JSON
@@ -301,7 +301,7 @@ Feature: Order filter on collections
301301
"""
302302

303303
Scenario: Get collection ordered in ascending order on an association and on which order filter has been enabled in whitelist mode
304-
Given there is "30" dummy objects with relatedDummy
304+
Given there are 30 dummy objects with relatedDummy
305305
When I send a "GET" request to "/dummies?order[relatedDummy]=asc"
306306
Then the response status code should be 200
307307
And the response should be in JSON

features/doctrine/range_filter.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Feature: Range filter on collections
55

66
@createSchema
77
Scenario: Get collection filtered by range (between)
8-
Given there is "30" dummy objects with dummyPrice
8+
Given there are 30 dummy objects with dummyPrice
99
When I send a "GET" request to "/dummies?dummyPrice[between]=12.99..15.99"
1010
Then the response status code should be 200
1111
And the response should be in JSON

features/doctrine/search_filter.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ Feature: Search filter on collections
6565
"""
6666

6767
Scenario: Search collection by name (partial)
68-
Given there is "30" dummy objects
68+
Given there are 30 dummy objects
6969
When I send a "GET" request to "/dummies?name=my"
7070
Then the response status code should be 200
7171
And the response should be in JSON
@@ -242,7 +242,7 @@ Feature: Search filter on collections
242242
@createSchema
243243
@dropSchema
244244
Scenario: Search related collection by name
245-
Given there is 3 dummy objects having each 3 relatedDummies
245+
Given there are 3 dummy objects having each 3 relatedDummies
246246
When I add "Accept" header equal to "application/hal+json"
247247
And I send a "GET" request to "/dummies?relatedDummies.name=RelatedDummy1"
248248
Then the response status code should be 200

features/hydra/collection.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Feature: Collections support
3232
"""
3333

3434
Scenario: Retrieve the first page of a collection
35-
Given there is "30" dummy objects
35+
Given there are "30" dummy objects
3636
And I send a "GET" request to "/dummies"
3737
Then the response status code should be 200
3838
And the response should be in JSON

0 commit comments

Comments
 (0)