Skip to content
Snippets Groups Projects
Commit a79ff6a4 authored by Ted Bowman's avatar Ted Bowman
Browse files

Issue #3411110: Test Automatic Updates and Package Manager as part of Drupal core 11.x on GitLab CI

parent 34e72b15
No related branches found
No related tags found
No related merge requests found
......@@ -49,6 +49,7 @@ include:
# Docs at https://git.drupalcode.org/project/gitlab_templates/-/blob/1.0.x/includes/include.drupalci.variables.yml
################
variables:
_TARGET_CORE: "$CORE_MINOR"
SKIP_COMPOSER_LINT: '1'
SKIP_ESLINT: '1'
SKIP_PHPCS: '1'
......@@ -120,7 +121,7 @@ composer:
- rm expand_composer_json.php
- composer create-project --no-install drupal/recommended-project:$_TARGET_CORE ./composer/Template/RecommendedProject
- composer create-project --no-install drupal/legacy-project:$_TARGET_CORE ./composer/Template/LegacyProject
- composer run core-convert --working-dir=./modules/contrib/automatic_updates -- $PWD --gitlabci --core_target_branch=10.1.x
- composer run core-convert --working-dir=./modules/contrib/automatic_updates -- $PWD --gitlabci --core_target_branch=11.x
- test -d ./core/modules/package_manager
- test -d ./core/modules/auto_updates
- rm -r -f ./modules/contrib
......
......@@ -32,10 +32,10 @@ class SymlinkValidatorTest extends PackageManagerKernelTestBase {
// correctly evaluated.
chdir($drush_dir . '/docs');
symlink('../drush_logo-black.png', 'drush_logo-black.png');
// Switch back to the project root to ensure that the check isn't affected
// by which directory we happen to be in.
chdir($project_root);
// Switch back to the Drupal root to ensure that the check isn't affected
// by which directory we happen to be in.
chdir($this->getDrupalRoot());
$this->assertStatusCheckResults([]);
}
......@@ -182,6 +182,9 @@ class SymlinkValidatorTest extends PackageManagerKernelTestBase {
->set('file_syncer', $file_syncer)
->save();
// Switch back to the Drupal root to ensure that the check isn't affected
// by which directory we happen to be in.
chdir($this->getDrupalRoot());
$this->assertStatusCheckResults($expected_results);
}
......
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