function SandboxManagerBaseTest::testUncreatedGetSandboxDirectory

@covers ::getSandboxDirectory

File

core/modules/package_manager/tests/src/Kernel/SandboxManagerBaseTest.php, line 132

Class

SandboxManagerBaseTest
@coversDefaultClass \Drupal\package_manager\SandboxManagerBase[[api-linebreak]] @group package_manager @group #slow @internal

Namespace

Drupal\Tests\package_manager\Kernel

Code

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

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