diff --git a/config/install/automatic_updates.settings.yml b/config/install/automatic_updates.settings.yml index a5dce8b4eb763e7bf54c86976964afdb4af73122..5386402ba38da2bbc3b8e310e9974713f7b6dad9 100644 --- a/config/install/automatic_updates.settings.yml +++ b/config/install/automatic_updates.settings.yml @@ -4,5 +4,5 @@ notify: true check_frequency: 43200 enable_readiness_checks: true hashes_uri: 'https://updates.drupal.org/release-hashes' -ignored_paths: "modules/custom/*\nthemes/custom/*\nprofiles/custom/*" +ignored_paths: "modules/*\nthemes/*\nprofiles/*" download_uri: 'https://www.drupal.org/in-place-updates' diff --git a/tests/src/Functional/AutomaticUpdatesTest.php b/tests/src/Functional/AutomaticUpdatesTest.php index d01fc4c2dbe00d60d6715599fa18b348f0b7ee60..3acc8fbf86c6758e65e54098f2b516ab9239027f 100644 --- a/tests/src/Functional/AutomaticUpdatesTest.php +++ b/tests/src/Functional/AutomaticUpdatesTest.php @@ -92,13 +92,17 @@ class AutomaticUpdatesTest extends BrowserTestBase { * Tests manually running readiness checks. */ public function testReadinessChecks() { + $ignore_paths = "modules/custom/*\nthemes/custom/*\nprofiles/custom/*"; + $this->config('automatic_updates.settings')->set('ignored_paths', $ignore_paths) + ->save(); // Test manually running readiness checks. A few warnings will occur. $this->drupalGet(Url::fromRoute('automatic_updates.settings')); $this->clickLink('run the readiness checks'); $this->assertSession()->pageTextContains('Your site does not pass some readiness checks for automatic updates. Depending on the nature of the failures, it might effect the eligibility for automatic updates.'); // Ignore specific file paths to see no readiness issues. - $this->config('automatic_updates.settings')->set('ignored_paths', "core/*\nmodules/*\nthemes/*\nprofiles/*") + $ignore_paths = "core/*\nmodules/*\nthemes/*\nprofiles/*"; + $this->config('automatic_updates.settings')->set('ignored_paths', $ignore_paths) ->save(); $this->drupalGet(Url::fromRoute('automatic_updates.settings')); $this->clickLink('run the readiness checks'); diff --git a/tests/src/Kernel/ReadinessChecker/MissingProjectInfoTest.php b/tests/src/Kernel/ReadinessChecker/MissingProjectInfoTest.php index ada97b18417939d33e0251740edff784f988f31d..14a728dcb430123d03ca8138ce922caa6842a66e 100644 --- a/tests/src/Kernel/ReadinessChecker/MissingProjectInfoTest.php +++ b/tests/src/Kernel/ReadinessChecker/MissingProjectInfoTest.php @@ -34,6 +34,9 @@ class MissingProjectInfoTest extends KernelTestBase { public function testMissingProjectInfo() { // The checker should always have messages on the testbot, since project // info is added by the packager. + $ignore_paths = "modules/custom/*\nthemes/custom/*\nprofiles/custom/*"; + $this->config('automatic_updates.settings')->set('ignored_paths', $ignore_paths) + ->save(); $messages = $this->container->get('automatic_updates.missing_project_info')->run(); $this->assertNotEmpty($messages);