Skip to content
Snippets Groups Projects
Commit 5474065a authored by Ted Bowman's avatar Ted Bowman Committed by Adam G-H
Browse files

Issue #3316318 by tedbow: Ensure release history fixture files are readable in build tests

parent b43bcd32
No related branches found
No related tags found
No related merge requests found
......@@ -21,7 +21,7 @@ class ModuleUpdateTest extends UpdateTestBase {
protected function createTestProject(string $template): void {
parent::createTestProject($template);
$this->setReleaseMetadata([
'drupal' => __DIR__ . '/../../../../tests/fixtures/release-history/drupal.9.8.1-security.xml',
'drupal' => __DIR__ . '/../../../../package_manager/tests/fixtures/release-history/drupal.9.8.1-security.xml',
'alpha' => __DIR__ . '/../../fixtures/release-history/alpha.1.1.0.xml',
'new_module' => __DIR__ . '/../../fixtures/release-history/new_module.1.1.0.xml',
]);
......
......@@ -167,6 +167,9 @@ END;
* @see \Drupal\automatic_updates_test\TestController::metadata()
*/
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;");
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment