function PackageManagerKernelTestBase::assertStatusCheckResults
Asserts validation results are returned from the status check event.
Parameters
\Drupal\package_manager\ValidationResult[] $expected_results: The expected validation results.
\Drupal\Tests\package_manager\Kernel\TestStage|null $stage: (optional) The test stage to use to create the status check event. If none is provided a new stage will be created.
38 calls to PackageManagerKernelTestBase::assertStatusCheckResults()
- AllowedScaffoldPackagesValidatorTest::testPreCreate in core/
modules/ package_manager/ tests/ src/ Kernel/ AllowedScaffoldPackagesValidatorTest.php - Tests that the allowed-packages setting is validated during pre-create.
- BaseRequirementsFulfilledValidatorTest::testBaseRequirement in core/
modules/ package_manager/ tests/ src/ Kernel/ BaseRequirementsFulfilledValidatorTest.php - Tests that base requirement failures stop event propagation.
- ComposerPatchesValidatorTest::testErrorDuringPreCreate in core/
modules/ package_manager/ tests/ src/ Kernel/ ComposerPatchesValidatorTest.php - Tests that the patcher configuration is validated during pre-create.
- ComposerPluginsValidatorTest::testInsecureConfigurationFailsValidationPreCreate in core/
modules/ package_manager/ tests/ src/ Kernel/ ComposerPluginsValidatorTest.php - Tests `config.allow-plugins: true` fails validation during pre-create.
- ComposerPluginsValidatorTest::testValidationDuringPreCreate in core/
modules/ package_manager/ tests/ src/ Kernel/ ComposerPluginsValidatorTest.php - Tests composer plugins are validated during pre-create.
File
-
core/
modules/ package_manager/ tests/ src/ Kernel/ PackageManagerKernelTestBase.php, line 236
Class
- PackageManagerKernelTestBase
- Base class for kernel tests of Package Manager's functionality.
Namespace
Drupal\Tests\package_manager\KernelCode
protected function assertStatusCheckResults(array $expected_results, ?StageBase $stage = NULL) : void {
$actual_results = $this->runStatusCheck($stage ?? $this->createStage(), $this->container
->get('event_dispatcher'));
$this->assertValidationResultsEqual($expected_results, $actual_results);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.