protected function PatchInfoTest::exposeTestExtensions in PatchInfo 8.2
Exposes test extensions to update manager.
Parameters
bool $update_form_test: Whether to test the update form. In that case only a limited number of test extensions will be exposed.
3 calls to PatchInfoTest::exposeTestExtensions()
- PatchInfoTest::testModuleExclusion in tests/
src/ Functional/ PatchInfoTest.php - Tests exclusion of modules from update check.
- PatchInfoTest::testUpdateForm in tests/
src/ Functional/ PatchInfoTest.php - Tests exposure of patch information in update manager form.
- PatchInfoTest::testUpdateReport in tests/
src/ Functional/ PatchInfoTest.php - Tests exposure of patch information in update report.
File
- tests/
src/ Functional/ PatchInfoTest.php, line 313
Class
- PatchInfoTest
- Tests functionality of PatchInfo module.
Namespace
Drupal\Tests\patchinfo\FunctionalCode
protected function exposeTestExtensions($update_form_test = FALSE) {
$system_info = [
'#all' => [
'version' => '8.0.0',
],
'test_info_source' => [
'project' => 'test_info_source',
'version' => '8.x-1.0',
'hidden' => FALSE,
],
'test_info_source_submodule' => [
'project' => 'test_info_source',
'version' => '8.x-1.0',
'hidden' => FALSE,
],
'test_composer_source' => [
'project' => 'test_composer_source',
'version' => '8.x-1.0',
'hidden' => FALSE,
],
'test_mixed_sources' => [
'project' => 'test_mixed_sources',
'version' => '8.x-1.0',
'hidden' => FALSE,
],
'test_theme_composer_source' => [
'project' => 'test_theme_composer_source',
'version' => '8.x-1.0',
'hidden' => FALSE,
],
'test_theme_info_source' => [
'project' => 'test_theme_info_source',
'version' => '8.x-1.0',
'hidden' => FALSE,
],
'test_subtheme_info_source' => [
'project' => 'test_theme_info_source',
'version' => '8.x-1.0',
'hidden' => FALSE,
],
'test_theme_mixed_sources' => [
'project' => 'test_theme_mixed_sources',
'version' => '8.x-1.0',
'hidden' => FALSE,
],
];
if ($update_form_test) {
$system_info = [
'#all' => [
'version' => '8.0.0',
],
'test_info_source' => [
'project' => 'test_info_source',
'version' => '8.x-1.0',
'hidden' => FALSE,
],
'test_info_source_submodule' => [
'project' => 'test_info_source',
'version' => '8.x-1.0',
'hidden' => FALSE,
],
];
}
$this
->config('update_test.settings')
->set('system_info', $system_info)
->save();
}