Skip to content
This repository has been archived by the owner on Jul 3, 2023. It is now read-only.

Commit

Permalink
tests: add param config key not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
gimler committed Jan 23, 2020
1 parent 7a774f6 commit 2231079
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions tests/acceptance/GherkinParamConfig.feature
Original file line number Diff line number Diff line change
Expand Up @@ -122,3 +122,30 @@ Feature: Parametrize Gherkin Feature (Config)
"""
When I execute a scenario calling the parameter 'config:not_a_param'
Then I should see "{{config:not_a_param}}" is null

Scenario: Config key not exists (expect null)
Given I have a configuration file "codeception.yml"
"""
actor: Tester
paths:
tests: tests
log: tests/_output
data: tests/_data
support: tests/_support
envs: tests/_envs
settings:
bootstrap: _bootstrap.php
colors: true
memory_limit: 512M
my_edgecase:
0:
user: 'edgecase'
extensions:
enabled:
- Codeception\Extension\GherkinParam
"""
When I execute a scenario calling the parameter 'my_edgecase:1:user'
Then I should see "{{config:my_edgecase:1:user}}" equals "edgecase"

0 comments on commit 2231079

Please sign in to comment.