File tree Expand file tree Collapse file tree 1 file changed +23
-20
lines changed
Expand file tree Collapse file tree 1 file changed +23
-20
lines changed Original file line number Diff line number Diff line change @@ -3,26 +3,8 @@ Feature: Importing files
33 As a Behat User
44 I need to import service definitions and parameters from files
55
6- Scenario : Importing a service from a Yaml file
7- Given a Behat configuration containing:
8- """
9- default:
10- suites:
11- default:
12- contexts:
13- - FeatureContext:
14- - "%foobar%"
15- extensions:
16- FriendsOfBehat\ServiceContainerExtension:
17- imports:
18- - features/bootstrap/config/services.yml
19- """
20- And a config file "features/bootstrap/config/services.yml" containing:
21- """
22- parameters:
23- foobar: "shit happens"
24- """
25- And a context file "features/bootstrap/FeatureContext.php" containing:
6+ Background :
7+ Given a context file "features/bootstrap/FeatureContext.php" containing:
268 """
279 <?php
2810
@@ -66,5 +48,26 @@ Feature: Importing files
6648 Given the parameter was injected to the context
6749 Then it should contain "shit happens"
6850 """
51+
52+
53+ Scenario : Importing a service from a Yaml file
54+ Given a Behat configuration containing:
55+ """
56+ default:
57+ suites:
58+ default:
59+ contexts:
60+ - FeatureContext:
61+ - "%foobar%"
62+ extensions:
63+ FriendsOfBehat\ServiceContainerExtension:
64+ imports:
65+ - features/bootstrap/config/services.yml
66+ """
67+ And a config file "features/bootstrap/config/services.yml" containing:
68+ """
69+ parameters:
70+ foobar: "shit happens"
71+ """
6972 When I run Behat
7073 Then it should pass
You can’t perform that action at this time.
0 commit comments