public function UpdateReportTest::providerTemplatePreprocessUpdateReport in Drupal 9
Same name and namespace in other branches
- 8 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 48
Class
- UpdateReportTest
- Tests update report functionality.
Namespace
Drupal\Tests\update\KernelCode
public 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',
],
],
];
}