public function getContents() { return $this->getDocument()->getContent(); }
/** * @Then I should not see a homepage from :theme theme */ public function iShouldNotSeeThemedHomepage(ThemeInterface $theme) { $content = file_get_contents(rtrim($theme->getPath(), '/') . '/SyliusWebBundle/views/Frontend/Homepage/main.html.twig'); expect($this->homePage->getContents())->notToBe($content); }