function LinkAccessConstraintValidatorTest::providerValidate

Same name in other branches
  1. 9 core/modules/link/tests/src/Unit/Plugin/Validation/Constraint/LinkAccessConstraintValidatorTest.php \Drupal\Tests\link\Unit\Plugin\Validation\Constraint\LinkAccessConstraintValidatorTest::providerValidate()
  2. 8.9.x core/modules/link/tests/src/Unit/Plugin/Validation/Constraint/LinkAccessConstraintValidatorTest.php \Drupal\Tests\link\Unit\Plugin\Validation\Constraint\LinkAccessConstraintValidatorTest::providerValidate()
  3. 10 core/modules/link/tests/src/Unit/Plugin/Validation/Constraint/LinkAccessConstraintValidatorTest.php \Drupal\Tests\link\Unit\Plugin\Validation\Constraint\LinkAccessConstraintValidatorTest::providerValidate()

Data provider for LinkAccessConstraintValidator::validate().

Return value

array An array of tests, matching the parameter inputs for testValidate.

See also

\Drupal\Tests\link\LinkAccessConstraintValidatorTest::validate()

File

core/modules/link/tests/src/Unit/Plugin/Validation/Constraint/LinkAccessConstraintValidatorTest.php, line 79

Class

LinkAccessConstraintValidatorTest
Tests the LinkAccessConstraintValidator validator.

Namespace

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

Code

public static function providerValidate() : \Generator {
    (yield [
        TRUE,
        TRUE,
        TRUE,
    ]);
    (yield [
        TRUE,
        FALSE,
        TRUE,
    ]);
    (yield [
        FALSE,
        TRUE,
        TRUE,
    ]);
    (yield [
        FALSE,
        FALSE,
        FALSE,
    ]);
}

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