/** * {@inheritdoc} */ public function assertPageHasContent(StaticContent $staticContent) { $this->verify(['name' => $staticContent->getName()]); Assert::contains($this->getSession()->getPage()->getHtml(), $staticContent->getTitle()); Assert::contains($this->getSession()->getPage()->getHtml(), $staticContent->getBody()); }