function LinkNotExistingInternalConstraintValidatorTest::validate

Same name in other branches
  1. 10 core/modules/link/tests/src/Unit/Plugin/Validation/Constraint/LinkNotExistingInternalConstraintValidatorTest.php \Drupal\Tests\link\Unit\Plugin\Validation\Constraint\LinkNotExistingInternalConstraintValidatorTest::validate()

Validate the link.

4 calls to LinkNotExistingInternalConstraintValidatorTest::validate()
LinkNotExistingInternalConstraintValidatorTest::testValidateFromNonExistingRoute in core/modules/link/tests/src/Unit/Plugin/Validation/Constraint/LinkNotExistingInternalConstraintValidatorTest.php
@covers ::validate
LinkNotExistingInternalConstraintValidatorTest::testValidateFromRoute in core/modules/link/tests/src/Unit/Plugin/Validation/Constraint/LinkNotExistingInternalConstraintValidatorTest.php
@covers ::validate
LinkNotExistingInternalConstraintValidatorTest::testValidateFromUri in core/modules/link/tests/src/Unit/Plugin/Validation/Constraint/LinkNotExistingInternalConstraintValidatorTest.php
@covers ::validate
LinkNotExistingInternalConstraintValidatorTest::testValidateWithMalformedUri in core/modules/link/tests/src/Unit/Plugin/Validation/Constraint/LinkNotExistingInternalConstraintValidatorTest.php
@covers ::validate

File

core/modules/link/tests/src/Unit/Plugin/Validation/Constraint/LinkNotExistingInternalConstraintValidatorTest.php, line 112

Class

LinkNotExistingInternalConstraintValidatorTest
@coversDefaultClass \Drupal\link\Plugin\Validation\Constraint\LinkNotExistingInternalConstraintValidator @group Link

Namespace

Drupal\Tests\link\Unit\Plugin\Validation\Constraint

Code

protected function validate(LinkItemInterface&MockObject $link, ExecutionContextInterface&MockObject $context) : void {
    $validator = new LinkNotExistingInternalConstraintValidator();
    $validator->initialize($context);
    $validator->validate($link, new LinkNotExistingInternalConstraint());
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.