function StagedDBUpdateValidatorTest::testUnclaimedStage

Tests that the validator disregards unclaimed stages.

File

core/modules/package_manager/tests/src/Kernel/StagedDBUpdateValidatorTest.php, line 199

Class

StagedDBUpdateValidatorTest
@covers \Drupal\package_manager\Validator\SandboxDatabaseUpdatesValidator @group package_manager @internal

Namespace

Drupal\Tests\package_manager\Kernel

Code

public function testUnclaimedStage() : void {
    $stage = $this->createStage();
    $stage->create();
    $this->assertStatusCheckResults([], $stage);
    // A new, unclaimed stage should be ignored by the validator.
    $this->assertStatusCheckResults([], $this->createStage());
}

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