1 | <?php |
||
10 | trait GetSettingContext |
||
11 | { |
||
12 | /** |
||
13 | * @var SettingApplication |
||
14 | */ |
||
15 | private $settingService; |
||
16 | |||
17 | /** |
||
18 | * @var Setting |
||
19 | */ |
||
20 | private $responseValue; |
||
21 | |||
22 | /** |
||
23 | * @Given /^there are persisted settings in storage system$/ |
||
24 | */ |
||
25 | public function thereArePersistedSettingsInStorageSystem(TableNode $table) |
||
29 | |||
30 | /** |
||
31 | * @When /^you try to get ([a-z_]*)$/ |
||
32 | */ |
||
33 | public function youTryToGetNotExisting($settingName) |
||
37 | |||
38 | /** |
||
39 | * @When you try to get :setting within :section |
||
40 | * |
||
41 | * @param string $setting |
||
42 | * @param string $section |
||
43 | */ |
||
44 | public function youTryToGetSettingWithinSection($setting, $section) |
||
48 | |||
49 | /** |
||
50 | * @When /^you try to get ([a-z_]*) with default value '(.*)'$/ |
||
51 | */ |
||
52 | public function youTryToGetNotExistingWithDefaultValue($setting, $value) |
||
56 | |||
57 | |||
58 | /** |
||
59 | * @Then /^you should get setting with (.*) value$/ |
||
60 | */ |
||
61 | public function youShouldGetSettingWithValue($value) |
||
69 | } |
||
70 |