diff --git a/tests/acceptance/GherkinParamConfig.feature b/tests/acceptance/GherkinParamConfig.feature index f9399e3..3d9c768 100644 --- a/tests/acceptance/GherkinParamConfig.feature +++ b/tests/acceptance/GherkinParamConfig.feature @@ -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"