function UnknownPathExcluderTest::testPathRepositoriesAreIncluded
File
-
core/
modules/ package_manager/ tests/ src/ Kernel/ PathExcluder/ UnknownPathExcluderTest.php, line 231
Class
- UnknownPathExcluderTest
- @covers \Drupal\package_manager\PathExcluder\UnknownPathExcluder @group package_manager @internal
Namespace
Drupal\Tests\package_manager\Kernel\PathExcluderCode
public function testPathRepositoriesAreIncluded() : void {
$this->createTestProjectForTemplate(TRUE);
$project_root = $this->container
->get(PathLocator::class)
->getProjectRoot();
$this->assertDirectoryExists($project_root . '/custom');
$stage = $this->createStage();
$stage->create();
$this->assertDirectoryExists($stage->getStageDirectory() . '/custom');
$stage->require([
'ext-json:*',
]);
$stage->apply();
$this->assertDirectoryExists($project_root . '/custom');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.