public function UpdateReportTest::providerTemplatePreprocessUpdateReport in Drupal 8
Same name and namespace in other branches
- 9 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 43
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 interger' => [
[
'data' => 4,
],
],
'$variables with data as a string' => [
[
'data' => 'I am a string',
],
],
];
}