function SymlinkValidatorTest::testUnsupportedLinkUnderExcludedPath
Tests that unsupported links are excluded if they're under excluded paths.
@legacy-covers \Drupal\package_manager\PathExcluder\GitExcluder @legacy-covers \Drupal\package_manager\PathExcluder\NodeModulesExcluder
Attributes
#[Depends('testAbsoluteSymlinks')]
File
-
core/
modules/ package_manager/ tests/ src/ Kernel/ SymlinkValidatorTest.php, line 198
Class
- SymlinkValidatorTest
- Tests Symlink Validator.
Namespace
Drupal\Tests\package_manager\KernelCode
public function testUnsupportedLinkUnderExcludedPath() : void {
$project_root = $this->container
->get(PathLocator::class)
->getProjectRoot();
// Create absolute symlinks (which are not supported by Composer Stager) in
// both `node_modules`, which is a regular directory, and `.git`, which is a
// hidden directory.
mkdir($project_root . '/node_modules');
symlink($project_root . '/composer.json', $project_root . '/node_modules/composer.link');
symlink($project_root . '/composer.json', $project_root . '/.git/composer.link');
$this->assertStatusCheckResults([]);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.