function TemplateProjectTestBase::setReleaseMetadata
Prepares the test site to serve an XML feed of available release metadata.
Parameters
array $xml_map: The update XML map, as used by update_test.settings.
See also
\Drupal\package_manager_test_release_history\TestController::metadata()
3 calls to TemplateProjectTestBase::setReleaseMetadata()
- PackageInstallTest::testPackageInstall in core/
modules/ package_manager/ tests/ src/ Build/ PackageInstallTest.php - Tests installing packages in a stage directory.
- PackageInstallTest::testSubModules in core/
modules/ package_manager/ tests/ src/ Build/ PackageInstallTest.php - Tests installing a Drupal submodule.
- PackageUpdateTest::testPackageUpdate in core/
modules/ package_manager/ tests/ src/ Build/ PackageUpdateTest.php - Tests updating packages in a stage directory.
File
-
core/
modules/ package_manager/ tests/ src/ Build/ TemplateProjectTestBase.php, line 243
Class
- TemplateProjectTestBase
- Base class for tests which create a test site from a core project template.
Namespace
Drupal\Tests\package_manager\BuildCode
protected function setReleaseMetadata(array $xml_map) : void {
foreach ($xml_map as $metadata_file) {
$this->assertFileIsReadable($metadata_file);
}
$xml_map = var_export($xml_map, TRUE);
$this->writeSettings("\$config['update_test.settings']['xml_map'] = {$xml_map};");
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.