Spec\Dumplie\Metadata\MetadataSpec::it_throws_exception_when_validated_for_wrong_model PHP Метод

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

    function it_throws_exception_when_validated_for_wrong_model()
    {
        $this->beConstructedWith(MetadataId::generate(), "product", ["sku" => "DUMPLIE_SKU_1"]);
        $this->shouldThrow(InvalidArgumentException::class)->during("isValid", [new TypeSchema("order", ["user_email" => new TextField()])]);
    }