Issue #3285145: CronFrequencyValidatorTest should use a virtual project
Merged
requested to merge issue/automatic_updates-3285145:3285145-cronfrequencyvalidatortest-should-use into 8.x-2.x
1 unresolved thread
Merge request reports
Activity
25 25 * {@inheritdoc} 26 26 */ 27 27 protected function setUp(): void { 28 // Disable the symlink validator so that the test isn't affected by symlinks 29 // or other unexpected things that might be present in the running code 30 // base. 31 // @todo Make this test use a virtual project in 32 // https://drupal.org/i/3285145. 33 $this->disableValidators[] = 'automatic_updates.validator.symlink'; 34 $this->disableValidators[] = 'package_manager.validator.symlink'; 35 28 parent::setUp(); 29 $this->createTestProject(); 30 // Since we're using a virtual project, and the staging area will be created 31 // in the virtual file system, we don't need to bypass Package Manager. 32 $this->disableModules(['package_manager_bypass']); I looked into this a little. I tried disabling another module to just see if any module would work but it didn't
I pushed up another MR !354 (closed) with a different fix. Calling
update_get_available(TRUE);
insetUp()
which kind of makes sense for the errors I was seeing and calling$this->container->get('state')->resetCache();
. will explain on other PRchanged this line in version 2 of the diff
Please register or sign in to reply