protected function ValidationTestTrait::assertCheckerResultsFromManager in Automatic Updates 8.2
Asserts expected validation results from the manager.
Parameters
\Drupal\automatic_updates\Validation\ValidationResult[] $expected_results: The expected results.
bool $call_run: (Optional) Whether to call ::run() on the manager. Defaults to FALSE.
int|null $severity: (optional) The severity for the results to return. Should be one of the SystemManager::REQUIREMENT_* constants.
11 calls to ValidationTestTrait::assertCheckerResultsFromManager()
- ComposerExecutableValidatorTest::testComposerVersionValidation in tests/
src/ Kernel/ ReadinessValidation/ ComposerExecutableValidatorTest.php - Tests validation of various Composer versions.
- ComposerExecutableValidatorTest::testErrorIfComposerNotFound in tests/
src/ Kernel/ ReadinessValidation/ ComposerExecutableValidatorTest.php - Tests that an error is raised if the Composer executable isn't found.
- CoreComposerValidatorTest::testCoreNotRequired in tests/
src/ Kernel/ ReadinessValidation/ CoreComposerValidatorTest.php - Tests that an error is raised if core is not required in composer.json.
- DiskSpaceValidatorTest::testDiskSpaceValidation in tests/
src/ Kernel/ ReadinessValidation/ DiskSpaceValidatorTest.php - Tests disk space validation.
- PendingUpdatesValidatorTest::testNoPendingUpdates in tests/
src/ Kernel/ ReadinessValidation/ PendingUpdatesValidatorTest.php - Tests that no error is raised if there are no pending updates.
File
- tests/
src/ Traits/ ValidationTestTrait.php, line 144
Class
- ValidationTestTrait
- Common methods for testing validation.
Namespace
Drupal\Tests\automatic_updates\TraitsCode
protected function assertCheckerResultsFromManager(array $expected_results, bool $call_run = FALSE, ?int $severity = NULL) : void {
$actual_results = $this
->getResultsFromManager($call_run, $severity);
$this
->assertValidationResultsEqual($expected_results, $actual_results);
}