Skip to content

Commit 7f9849e

Browse files
committed
Cleanup
1 parent ee7c505 commit 7f9849e

File tree

5 files changed

+13
-13
lines changed

5 files changed

+13
-13
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ before_script:
4242
- (cd tests/Application && bin/console doctrine:database:create --env=test -vvv)
4343
- (cd tests/Application && bin/console doctrine:schema:create --env=test -vvv)
4444
- (cd tests/Application && bin/console assets:install web --env=test -vvv)
45-
- (cd tests/Application && bin/console fo:el:po --env=test)
45+
- (cd tests/Application && bin/console fos:elastica:populate --env=test)
4646
- (cd tests/Application && yarn run gulp)
4747

4848
# Configure display

features/shop/filtering_products.feature

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Feature: Filtering products
88
Given the store operates on a channel named "Web-US" in "USD" currency
99
And the store classifies its products as "T-Shirts"
1010
And there are 45 t-shirts in the store
11-
And this products belongs to "T-Shirts" taxon
11+
And these products belongs to "T-Shirts" taxon
1212
And 5 of these products are priced between "$10" and "$15"
1313
And 10 of these products are priced between "$15" and "$35"
1414
And these products have "Size" option with values "S,M,L"
@@ -23,7 +23,7 @@ Feature: Filtering products
2323

2424
@ui
2525
Scenario: Filtering products by name
26-
When I go to the shop products page from taxon "T-Shirts"
26+
When I go to the shop products page for "T-Shirts" taxon
2727
And I search the products by "shirt" phase
2828
Then I should see 9 products on 1 page
2929
And I should see 9 products on 2 page
@@ -33,35 +33,35 @@ Feature: Filtering products
3333

3434
@ui
3535
Scenario: Filtering products by options
36-
When I go to the shop products page from taxon "T-Shirts"
36+
When I go to the shop products page for "T-Shirts" taxon
3737
And I filter products by "S" "Size" option
3838
And I filter products by "M" "Size" option
3939
Then I should see 8 products on the page
4040

4141
@ui
4242
Scenario: Filtering products by attributes
43-
When I go to the shop products page from taxon "T-Shirts"
43+
When I go to the shop products page for "T-Shirts" taxon
4444
And I filter products by "Red" "color" attribute
4545
And I filter products by "Green" "color" attribute
4646
Then I should see 8 products on the page
4747

4848
@ui
4949
Scenario: Filtering products by price
50-
When I go to the shop products page from taxon "T-Shirts"
50+
When I go to the shop products page for "T-Shirts" taxon
5151
And I filter product price between 10 and 15
5252
Then I should see 5 products on the page
5353

5454
@ui
5555
Scenario: Changing limit from 9 to 18
56-
When I go to the shop products page from taxon "T-Shirts"
56+
When I go to the shop products page for "T-Shirts" taxon
5757
And I change the limit to 18
5858
Then I should see 18 products on 1 page
5959
And I should see 18 products on 2 page
6060
And I should see 9 products on 3 page
6161

6262
@ui
6363
Scenario: Changing limit from 9 to 36
64-
When I go to the shop products page from taxon "T-Shirts"
64+
When I go to the shop products page for "T-Shirts" taxon
6565
And I change the limit to 36
6666
Then I should see 36 products on 1 page
6767
And I should see 9 products on 2 page

tests/Behat/Context/Setup/ElasticsearchContext.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public function __construct(Populate $populate)
3333
/**
3434
* @Given the data is populated to elasticsearch
3535
*/
36-
public function populateElasticsearch(): void
36+
public function theDataIsPopulatedToElasticsearch(): void
3737
{
3838
$this->populate->populateIndex();
3939
}

tests/Behat/Context/Setup/ProductTaxonContext.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ public function __construct(
5353
}
5454

5555
/**
56-
* @Given /^this products belongs to ("[^"]+" taxon)$/
56+
* @Given /^these products belongs to ("[^"]+" taxon)$/
5757
*/
58-
public function thisProductsBelongsTo(TaxonInterface $taxon): void
58+
public function theseProductsBelongsToTaxon(TaxonInterface $taxon): void
5959
{
6060
/** @var ProductInterface $product */
6161
foreach ($this->sharedStorage->get('products') as $product) {

tests/Behat/Context/Ui/Shop/ProductContext.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ public function __construct(IndexPageInterface $productIndexPage, SharedStorageI
4040
}
4141

4242
/**
43-
* @When /^I go to the shop products page from (taxon "([^"]+)")$/
43+
* @When /^I go to the shop products page for ("([^"]+)" taxon)$/
4444
*/
45-
public function iGoToTheShopProductsPage(TaxonInterface $taxon): void
45+
public function iGoToTheShopProductsPageForTaxon(TaxonInterface $taxon): void
4646
{
4747
$this->productIndexPage->open(['slug' => $taxon->getSlug()]);
4848

0 commit comments

Comments
 (0)