Skip to content

Commit

Permalink
OP-322: Behat
Browse files Browse the repository at this point in the history
  • Loading branch information
jkindly committed Jun 28, 2024
1 parent 0243199 commit 6e3ca93
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions tests/Behat/Context/Setup/PageContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,6 @@ public function thesePagesHaveThisCollectionAssociatedWithIt(): void
private function createPage(
?string $code = null,
?string $name = null,
?string $content = null,
ChannelInterface $channel = null,
): PageInterface {
/** @var PageInterface $page */
Expand All @@ -209,15 +208,10 @@ private function createPage(
$name = $this->randomStringGenerator->generate();
}

if (null === $content) {
$content = $this->randomStringGenerator->generate();
}

$page->setCode($code);
$page->setCurrentLocale('en_US');
$page->setName($name);
$page->setSlug($this->randomStringGenerator->generate());
$page->setContent($content);
$page->addChannel($channel);

return $page;
Expand Down

0 comments on commit 6e3ca93

Please sign in to comment.