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.
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.