function FixtureManipulatorTest::testActiveManipulatorNoCommitError
Test that an exception is thrown if ::commitChanges() is not called.
File
-
core/
modules/ package_manager/ tests/ src/ Kernel/ FixtureManipulatorTest.php, line 208
Class
- FixtureManipulatorTest
- @coversDefaultClass \Drupal\fixture_manipulator\FixtureManipulator
Namespace
Drupal\Tests\package_manager\KernelCode
public function testActiveManipulatorNoCommitError() : void {
$this->expectException(\LogicException::class);
$this->expectExceptionMessage('commitChanges() must be called.');
(new ActiveFixtureManipulator())->setVersion('drupal/core', '1.2.3');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.