function UpdateReportTest::providerTemplatePreprocessUpdateReport
Same name in other branches
- 9 core/modules/update/tests/src/Kernel/UpdateReportTest.php \Drupal\Tests\update\Kernel\UpdateReportTest::providerTemplatePreprocessUpdateReport()
- 8.9.x core/modules/update/tests/src/Kernel/UpdateReportTest.php \Drupal\Tests\update\Kernel\UpdateReportTest::providerTemplatePreprocessUpdateReport()
- 10 core/modules/update/tests/src/Kernel/UpdateReportTest.php \Drupal\Tests\update\Kernel\UpdateReportTest::providerTemplatePreprocessUpdateReport()
Provides data for testTemplatePreprocessUpdateReport().
Return value
array Array of $variables for template_preprocess_update_report().
File
-
core/
modules/ update/ tests/ src/ Kernel/ UpdateReportTest.php, line 50
Class
- UpdateReportTest
- Tests update report functionality.
Namespace
Drupal\Tests\update\KernelCode
public static function providerTemplatePreprocessUpdateReport() {
return [
'$variables with data not set' => [
[],
],
'$variables with data as an integer' => [
[
'data' => 4,
],
],
'$variables with data as a string' => [
[
'data' => 'I am a string',
],
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.