function SandboxManagerBaseTest::testFailureCollectPathsToExcludeOnApply
Tests that if apply fails to get paths to exclude, throws a stage exception.
File
-
core/
modules/ package_manager/ tests/ src/ Kernel/ SandboxManagerBaseTest.php, line 437
Class
- SandboxManagerBaseTest
- @coversDefaultClass \Drupal\package_manager\SandboxManagerBase @group package_manager @group #slow @internal
Namespace
Drupal\Tests\package_manager\KernelCode
public function testFailureCollectPathsToExcludeOnApply() : void {
$stage = $this->createStage();
$stage->create();
$stage->require([
'drupal/random',
]);
$this->expectException(SandboxException::class);
$this->expectExceptionMessage("composer.json not found.");
unlink($stage->getSandboxDirectory() . '/composer.json');
$stage->apply();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.