function FixtureManipulatorTest::testStagedFixtureNotCommitted

Tests that the stage manipulator throws an exception if not committed.

File

core/modules/package_manager/tests/src/Kernel/FixtureManipulatorTest.php, line 258

Class

FixtureManipulatorTest
@coversDefaultClass \Drupal\fixture_manipulator\FixtureManipulator

Namespace

Drupal\Tests\package_manager\Kernel

Code

public function testStagedFixtureNotCommitted() : void {
    $this->expectedTearDownException = new \LogicException('The StageFixtureManipulator has arguments that were not cleared. This likely means that the PostCreateEvent was never fired.');
    $this->getStageFixtureManipulator()
        ->setVersion('any-org/any-package', '3.2.1');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.