Skip to content

Commit 408bd4b

Browse files
committed
Make importing files feature more elastic
1 parent 3a42c93 commit 408bd4b

File tree

1 file changed

+23
-20
lines changed

1 file changed

+23
-20
lines changed

features/importing_files.feature

Lines changed: 23 additions & 20 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)