function ModuleVersionTest::createKeyedTestCases
Same name and namespace in other branches
- 8.9.x core/modules/update/tests/src/Unit/ModuleVersionTest.php \Drupal\Tests\update\Unit\ModuleVersionTest::createKeyedTestCases()
Creates test case arrays for data provider methods.
Parameters
string[] $test_arguments: The test arguments.
Return value
array An array with $test_arguments as keys and each element of $test_arguments as a single item array
File
-
core/
modules/ update/ tests/ src/ Unit/ ModuleVersionTest.php, line 392
Class
- ModuleVersionTest
- @coversDefaultClass \Drupal\update\ModuleVersion[[api-linebreak]]
Namespace
Drupal\Tests\update\UnitCode
protected static function createKeyedTestCases(array $test_arguments) {
return array_combine($test_arguments, array_map(function ($test_argument) {
return [
$test_argument,
];
}, $test_arguments));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.