public function countryShouldAppearInTheStore(CountryInterface $country) { $this->indexPage->open(); Assert::true($this->indexPage->isSingleResourceOnPage(['code' => $country->getCode()]), sprintf('Country %s should exist but it does not', $country->getCode())); }