function PhpTufValidatorTest::providerInvalidConfigurationInStage

Data provider for testing invalid plugin configuration in the stage.

Return value

\Generator The test cases.

File

core/modules/package_manager/tests/src/Kernel/PhpTufValidatorTest.php, line 195

Class

PhpTufValidatorTest
Tests Drupal\package_manager\Validator\PhpTufValidator.

Namespace

Drupal\Tests\package_manager\Kernel

Code

public static function providerInvalidConfigurationInStage() : \Generator {
  foreach (static::providerInvalidConfiguration() as $name => $arguments) {
    $arguments[] = PreRequireEvent::class;
    yield "{$name} on pre-require" => $arguments;
    array_splice($arguments, -1, NULL, PreApplyEvent::class);
    yield "{$name} on pre-apply" => $arguments;
  }
}

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