function FixturesBase::projectFixtureDir
Gets the path to one particular project fixture.
Parameters
string $project_name: The project name to get the path for.
Return value
string Path to project fixture.
1 call to FixturesBase::projectFixtureDir()
- Fixtures::sourcePath in core/
tests/ Drupal/ Tests/ Composer/ Plugin/ Scaffold/ Fixtures.php - Gets a path to a source scaffold fixture.
File
-
core/
tests/ Drupal/ Tests/ Composer/ Plugin/ FixturesBase.php, line 114
Class
- FixturesBase
- Base class for fixtures to test composer plugins.
Namespace
Drupal\Tests\Composer\PluginCode
public function projectFixtureDir(string $project_name) : string {
$dir = $this->allFixturesDir() . '/' . $project_name;
if (!is_dir($dir)) {
throw new \RuntimeException("Requested fixture project {$project_name} that does not exist.");
}
return $dir;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.