Skip to content

Commit

Permalink
387-Test coverage of getting IDs of CMS page/blocks by GraphQL API
Browse files Browse the repository at this point in the history
  • Loading branch information
atwixfirster committed May 6, 2019
1 parent fed22e0 commit b4ea6b9
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,7 @@ public function __construct(
public function getData(int $pageId): array
{
$page = $this->pageRepository->getById($pageId);

if (false === $page->isActive()) {
throw new NoSuchEntityException();
}


return $this->convertPageData($page);
}

Expand Down

0 comments on commit b4ea6b9

Please sign in to comment.