From 9cdc0993dcb7d950114c6b5eabba014d580b0d34 Mon Sep 17 00:00:00 2001 From: Gordon Franke Date: Thu, 23 Jan 2020 08:32:46 +0100 Subject: [PATCH] tests: add param config key not exist --- tests/acceptance/GherkinParamConfig.feature | 27 +++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/tests/acceptance/GherkinParamConfig.feature b/tests/acceptance/GherkinParamConfig.feature index 814d3c0..09cd788 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"