class ActiveFixtureManipulator
A fixture manipulator for the active directory.
Hierarchy
- class \Drupal\fixture_manipulator\FixtureManipulator
- class \Drupal\fixture_manipulator\ActiveFixtureManipulator extends \Drupal\fixture_manipulator\FixtureManipulator
Expanded class hierarchy of ActiveFixtureManipulator
14 files declare their use of ActiveFixtureManipulator
- AllowedScaffoldPackagesValidatorTest.php in core/
modules/ package_manager/ tests/ src/ Kernel/ AllowedScaffoldPackagesValidatorTest.php - ChangeLoggerTest.php in core/
modules/ package_manager/ tests/ src/ Kernel/ ChangeLoggerTest.php - ComposerInspectorTest.php in core/
modules/ package_manager/ tests/ src/ Kernel/ ComposerInspectorTest.php - ComposerPatchesValidatorTest.php in core/
modules/ package_manager/ tests/ src/ Kernel/ ComposerPatchesValidatorTest.php - ComposerPluginsValidatorTest.php in core/
modules/ package_manager/ tests/ src/ Kernel/ ComposerPluginsValidatorTest.php
File
-
core/
modules/ package_manager/ tests/ modules/ fixture_manipulator/ src/ ActiveFixtureManipulator.php, line 12
Namespace
Drupal\fixture_manipulatorView source
final class ActiveFixtureManipulator extends FixtureManipulator {
/**
* {@inheritdoc}
*/
public function commitChanges(?string $dir = NULL) : void {
if ($dir) {
throw new \UnexpectedValueException("{$dir} cannot be specific for a ActiveFixtureManipulator instance");
}
$dir = \Drupal::service(PathLocator::class)->getProjectRoot();
parent::doCommitChanges($dir);
}
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overriden Title | Overrides |
---|---|---|---|---|---|
ActiveFixtureManipulator::commitChanges | public | function | Overrides FixtureManipulator::commitChanges | ||
FixtureManipulator::$committed | protected | property | Whether changes have been committed. | ||
FixtureManipulator::$committingChanges | private | property | Whether changes are currently being committed. | ||
FixtureManipulator::$dir | protected | property | The fixture directory. | ||
FixtureManipulator::$manipulatorArguments | private | property | Arguments to manipulator functions. | ||
FixtureManipulator::addConfig | public | function | Modifies the project root's composer.json properties. | ||
FixtureManipulator::addDotGitFolder | public | function | Creates an empty .git folder after being provided a path. | ||
FixtureManipulator::addPackage | public | function | Adds a package. | ||
FixtureManipulator::addProjectAtPath | public | function | Adds a project at a path. | ||
FixtureManipulator::addRepository | private | function | Adds a path repository. | ||
FixtureManipulator::clearQueuedManipulationItems | protected | function | Clears all queued manipulation items. | 1 | |
FixtureManipulator::createPathRepo | private | function | Creates a path repo. | ||
FixtureManipulator::doCommitChanges | final protected | function | Commits all the changes. | ||
FixtureManipulator::getComposerInitOptionsForPackage | private static | function | Transform the received $package into options for `composer init`. | ||
FixtureManipulator::getQueuedManipulationItems | protected | function | Gets all queued manipulation items. | 1 | |
FixtureManipulator::modifyPackageConfig | public | function | Modifies a package's composer.json properties. | ||
FixtureManipulator::PATH_REPO_STATE_KEY | protected | constant | |||
FixtureManipulator::queueManipulation | protected | function | Queues manipulation arguments to be called in ::doCommitChanges(). | 1 | |
FixtureManipulator::removePackage | public | function | Removes a package. | ||
FixtureManipulator::requirePackage | public | function | Requires a package. | ||
FixtureManipulator::runComposerCommand | protected | function | |||
FixtureManipulator::setCorePackageVersion | public | function | Modifies core packages. | ||
FixtureManipulator::setUpRepos | public | function | Sets up the path repos at absolute paths. | ||
FixtureManipulator::setVersion | public | function | Sets a package version. | ||
FixtureManipulator::validateComposer | private | function | Validate the fixtures still passes `composer validate`. | ||
FixtureManipulator::__destruct | public | function | Ensure that changes were committed before object is destroyed. | 1 |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.