File tree Expand file tree Collapse file tree 6 files changed +12
-13
lines changed
Expand file tree Collapse file tree 6 files changed +12
-13
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ Feature: Filtering products
1919 And 3 of these products have text attribute "color" with "Red" value
2020 And 5 of these products have text attribute "color" with "Green" value
2121 And 7 of these products have text attribute "color" with "Blue" value
22+ And populate elasticsearch
2223
2324 @ui
2425 Scenario : Filtering products by name
Original file line number Diff line number Diff line change 1010
1111declare (strict_types=1 );
1212
13- namespace Tests \BitBag \SyliusElasticsearchPlugin \Behat \Context \Hook ;
13+ namespace Tests \BitBag \SyliusElasticsearchPlugin \Behat \Context \Setup ;
1414
1515use Behat \Behat \Context \Context ;
1616use Tests \BitBag \SyliusElasticsearchPlugin \Behat \Service \Populate ;
@@ -31,9 +31,9 @@ public function __construct(Populate $populate)
3131 }
3232
3333 /**
34- * @AfterScenario
34+ * @Given populate elasticsearch
3535 */
36- public function populateIndex (): void
36+ public function populateElasticsearch ()
3737 {
3838 $ this ->populate ->populateIndex ();
3939 }
Original file line number Diff line number Diff line change 11imports :
22 - { resource: "contexts/setup.yml" }
33 - { resource: "contexts/ui.yml" }
4- - { resource: "contexts/hook.yml" }
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -33,3 +33,10 @@ services:
3333 - " @__symfony__.doctrine.orm.entity_manager"
3434 tags :
3535 - { name: fob.context_service }
36+
37+ bitbag.sylius_elasticsearch_plugin.behat.context.setup.elasticsearch :
38+ class : Tests\BitBag\SyliusElasticsearchPlugin\Behat\Context\Setup\ElasticsearchContext
39+ arguments :
40+ - " @bitbag.sylius_elasticsearch_plugin.behat.populate"
41+ tags :
42+ - { name: fob.context_service }
Original file line number Diff line number Diff line change 44 contexts_services :
55 - sylius.behat.context.hook.doctrine_orm
66
7- - bitbag.sylius_elasticsearch_plugin.behat.context.hook.elasticsearch
8-
97 - sylius.behat.context.transform.channel
108 - sylius.behat.context.transform.lexical
119 - sylius.behat.context.transform.locale
@@ -21,6 +19,7 @@ default:
2119 - bitbag.sylius_elasticsearch_plugin.behat.context.setup.product
2220 - bitbag.sylius_elasticsearch_plugin.behat.context.setup.product_attribute
2321 - bitbag.sylius_elasticsearch_plugin.behat.context.setup.product_taxon
22+ - bitbag.sylius_elasticsearch_plugin.behat.context.setup.elasticsearch
2423
2524 - bitbag.sylius_elasticsearch_plugin.behat.context.ui.shop.product
2625 filters :
You can’t perform that action at this time.
0 commit comments