Sylius\Behat\Context\Ui\Admin\ManagingTaxonsContext::iShouldBeNotifiedThatTaxonWithThisCodeAlreadyExists PHP Method

iShouldBeNotifiedThatTaxonWithThisCodeAlreadyExists() public method

    public function iShouldBeNotifiedThatTaxonWithThisCodeAlreadyExists()
    {
        /** @var CreatePageInterface|UpdatePageInterface $currentPage */
        $currentPage = $this->currentPageResolver->getCurrentPageWithForm([$this->createPage, $this->updatePage]);
        Assert::same($currentPage->getValidationMessage('code'), 'Taxon with given code already exists.');
    }