function StagedDBUpdateValidatorTest::testUnclaimedStage

Tests that the validator disregards unclaimed stages.

File

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

Class

StagedDBUpdateValidatorTest
Tests Staged DBUpdate Validator.

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.