function UnknownPathExcluderTest::createTestProject
Creates a test project.
This will create a temporary uniques root directory and then creates two directories in it: 'active', which is the active directory containing a fake Drupal code base, and 'stage', which is the root directory used to stage changes. The path locator service will also be mocked so that it points to the test project.
Parameters
string|null $source_dir: (optional) The path of a directory which should be copied into the test project and used as the active directory.
Overrides PackageManagerKernelTestBase::createTestProject
File
-
core/
modules/ package_manager/ tests/ src/ Kernel/ PathExcluder/ UnknownPathExcluderTest.php, line 32
Class
- UnknownPathExcluderTest
- Tests Unknown Path Excluder.
Namespace
Drupal\Tests\package_manager\Kernel\PathExcluderCode
protected function createTestProject(?string $source_dir = NULL) : void {
// This class needs the test project to be varied for different test
// methods, so it cannot be called in the setup.
// @see ::createTestProjectForTemplate()
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.