/**
  * @When I ask for sections list for :publicationId publication using section repository
  *
  * @param string $publicationId
  */
 public function iAskForSectionsListForPublicationUsingSectionRepository($publicationId)
 {
     $findParameters = FindAllParameters::createForPublicationId($publicationId);
     $this->sections = $this->sectionRepository->findAll($findParameters)->getSections();
 }
 function it_throws_exception_when_can_not_fetch_response_using_http_client(ApiHttpClientInterface $apiHttpClient)
 {
     $apiHttpClient->get(Argument::type(ApiHttpPathAndQuery::class))->willThrow(ApiHttpClientException::class);
     $this->shouldThrow(CouldNotFetchResourceRepositoryException::class)->duringFindAll(FindAllParameters::createForPublicationId(PublicationId::SA));
 }