/** * @Then /^(this static content) should have body "([^"]+)"$/ */ public function thisStaticContentShouldHaveBody(StaticContent $staticContent, $body) { $this->updatePage->open(['id' => $staticContent->getId()]); Assert::same($this->updatePage->getBody(), $body); }