/**
  * @Then /^(this locale) should be disabled$/
  */
 public function thisLocaleShouldBeDisabled(LocaleInterface $locale)
 {
     Assert::true($this->indexPage->isLocaleDisabled($locale), sprintf('Locale %s should be disabled but it is not', $locale->getCode()));
 }
 function it_throws_an_exception_if_resource_can_not_be_founded_on_page(IndexPageInterface $indexPage)
 {
     $indexPage->isResourceOnPage(['name' => 'Norwegian'])->willReturn(false);
     $this->shouldThrow(\InvalidArgumentException::class)->during('storeShouldBeAvailableInLanguage', ['Norwegian']);
 }