1 | <?php |
||
25 | final class ThemeContext implements Context |
||
26 | { |
||
27 | /** |
||
28 | * @var SharedStorageInterface |
||
29 | */ |
||
30 | private $sharedStorage; |
||
31 | |||
32 | /** |
||
33 | * @var ChannelIndexPage |
||
34 | */ |
||
35 | private $channelIndexPage; |
||
36 | |||
37 | /** |
||
38 | * @var ChannelUpdatePage |
||
39 | */ |
||
40 | private $channelUpdatePage; |
||
41 | |||
42 | /** |
||
43 | * @var HomePage |
||
44 | */ |
||
45 | private $homePage; |
||
46 | |||
47 | /** |
||
48 | * @param SharedStorageInterface $sharedStorage |
||
49 | * @param ChannelIndexPage $channelIndexPage |
||
50 | * @param ChannelUpdatePage $channelUpdatePage |
||
51 | * @param HomePage $homePage |
||
52 | */ |
||
53 | public function __construct( |
||
64 | |||
65 | /** |
||
66 | * @When I set :channel channel theme to :theme |
||
67 | */ |
||
68 | public function iSetChannelThemeTo(ChannelInterface $channel, ThemeInterface $theme) |
||
77 | |||
78 | /** |
||
79 | * @When /^I unset theme on (that channel)$/ |
||
80 | */ |
||
81 | public function iUnsetThemeOnChannel(ChannelInterface $channel) |
||
87 | |||
88 | /** |
||
89 | * @Then /^(that channel) should not use any theme$/ |
||
90 | */ |
||
91 | public function channelShouldNotUseAnyTheme(ChannelInterface $channel) |
||
97 | |||
98 | /** |
||
99 | * @Then /^(that channel) should use (that theme)$/ |
||
100 | */ |
||
101 | public function channelShouldUseTheme(ChannelInterface $channel, ThemeInterface $theme) |
||
107 | |||
108 | /** |
||
109 | * @Then /^I should see a homepage from ((?:this|that) theme)$/ |
||
110 | */ |
||
111 | public function iShouldSeeThemedHomepage(ThemeInterface $theme) |
||
117 | |||
118 | /** |
||
119 | * @Then I should not see a homepage from :theme theme |
||
120 | */ |
||
121 | public function iShouldNotSeeThemedHomepage(ThemeInterface $theme) |
||
127 | } |
||
128 |