spec\Sylius\Bundle\ResourceBundle\Routing\ResourceLoaderSpec::it_throws_an_exception_if_both_excluded_and_includes_routes_configured PHP Метод

it_throws_an_exception_if_both_excluded_and_includes_routes_configured() публичный Метод

    function it_throws_an_exception_if_both_excluded_and_includes_routes_configured()
    {
        $configuration = <<<EOT
alias: sylius.product
except: ['show', 'delete']
only: ['create']
EOT;
        $this->shouldThrow(\InvalidArgumentException::class)->during('load', [$configuration, 'sylius.resource']);
    }