示例#1
0
 /**
  * @Then /^(that channel) should use (that theme)$/
  */
 public function channelShouldUseTheme(ChannelInterface $channel, ThemeInterface $theme)
 {
     $this->channelIndexPage->open();
     Assert::same($this->channelIndexPage->getUsedThemeName($channel->getCode()), $theme->getName());
 }
 /**
  * @param ChannelInterface $channel
  * @param bool $state
  */
 private function assertChannelState(ChannelInterface $channel, $state)
 {
     $this->iWantToBrowseChannels();
     Assert::true($this->indexPage->isSingleResourceOnPage(['name' => $channel->getName(), 'enabled' => $state]), sprintf('Channel with name %s and state %s has not been found.', $channel->getName(), $state));
 }
示例#3
0
 /**
  * @Then /^(that channel) should use (that theme)$/
  */
 public function channelShouldUseTheme(ChannelInterface $channel, ThemeInterface $theme)
 {
     $this->channelIndexPage->open();
     expect($this->channelIndexPage->getUsedThemeName($channel->getCode()))->toBe($theme->getName());
 }