function StageBaseTest::testUncreatedGetStageDirectory

@covers ::getStageDirectory

File

core/modules/package_manager/tests/src/Kernel/StageBaseTest.php, line 131

Class

StageBaseTest
@coversDefaultClass \Drupal\package_manager\StageBase @group package_manager @group #slow @internal

Namespace

Drupal\Tests\package_manager\Kernel

Code

public function testUncreatedGetStageDirectory() : void {
    $this->expectException(\LogicException::class);
    $this->expectExceptionMessage('Drupal\\package_manager\\StageBase::getStageDirectory() cannot be called because the stage has not been created or claimed.');
    $this->createStage()
        ->getStageDirectory();
}

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