function StageFixtureManipulator::handleTearDown
Handles test tear down to ensure all changes were committed.
1 call to StageFixtureManipulator::handleTearDown()
- PackageManagerKernelTestBase::tearDown in core/
modules/ package_manager/ tests/ src/ Kernel/ PackageManagerKernelTestBase.php
File
-
core/
modules/ package_manager/ tests/ modules/ fixture_manipulator/ src/ StageFixtureManipulator.php, line 80
Class
- StageFixtureManipulator
- A fixture manipulator service that commits changes after begin.
Namespace
Drupal\fixture_manipulatorCode
public static function handleTearDown() : void {
if (!empty(\Drupal::state()->get(self::STATE_KEY))) {
throw new \LogicException('The StageFixtureManipulator has arguments that were not cleared. This likely means that the PostCreateEvent was never fired.');
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.