You are here

protected static function ExtensionVersionTest::createKeyedTestCases in Drupal 10

Same name and namespace in other branches
  1. 9 core/tests/Drupal/Tests/Core/Extension/ExtensionVersionTest.php \Drupal\Tests\Core\Extension\ExtensionVersionTest::createKeyedTestCases()

Creates test case arrays for data provider methods.

Parameters

string[] $test_arguments: The test arguments.

Return value

mixed[] An array with $test_arguments as keys and each element of $test_arguments as a single item array

4 calls to ExtensionVersionTest::createKeyedTestCases()
ExtensionVersionTest::provideInvalidBranch in core/tests/Drupal/Tests/Core/Extension/ExtensionVersionTest.php
Data provider for testInvalidBranch().
ExtensionVersionTest::providerInvalidBranchCorePrefix in core/tests/Drupal/Tests/Core/Extension/ExtensionVersionTest.php
Data provider for testInvalidBranchCorePrefix().
ExtensionVersionTest::providerInvalidVersionCorePrefix in core/tests/Drupal/Tests/Core/Extension/ExtensionVersionTest.php
Data provider for testInvalidVersionCorePrefix().
ExtensionVersionTest::providerInvalidVersionNumber in core/tests/Drupal/Tests/Core/Extension/ExtensionVersionTest.php
Data provider for testInvalidVersionNumber().

File

core/tests/Drupal/Tests/Core/Extension/ExtensionVersionTest.php, line 442

Class

ExtensionVersionTest
@coversDefaultClass \Drupal\Core\Extension\ExtensionVersion

Namespace

Drupal\Tests\Core\Extension

Code

protected static function createKeyedTestCases(array $test_arguments) : array {
  return array_combine($test_arguments, array_map(function ($test_argument) {
    return [
      $test_argument,
    ];
  }, $test_arguments));
}