class TestChecker2 in Automatic Updates 8.2
A test readiness checker.
Hierarchy
- class \Drupal\automatic_updates_test\ReadinessChecker\TestChecker1 implements \Symfony\Component\EventDispatcher\EventSubscriberInterface
- class \Drupal\automatic_updates_test2\ReadinessChecker\TestChecker2
Expanded class hierarchy of TestChecker2
2 files declare their use of TestChecker2
- ReadinessValidationManagerTest.php in tests/
src/ Kernel/ ReadinessValidation/ ReadinessValidationManagerTest.php - ReadinessValidationTest.php in tests/
src/ Functional/ ReadinessValidationTest.php
1 string reference to 'TestChecker2'
- automatic_updates_test2.services.yml in tests/
modules/ automatic_updates_test2/ automatic_updates_test2.services.yml - tests/modules/automatic_updates_test2/automatic_updates_test2.services.yml
1 service uses TestChecker2
- automatic_updates_test2.checker in tests/
modules/ automatic_updates_test2/ automatic_updates_test2.services.yml - Drupal\automatic_updates_test2\ReadinessChecker\TestChecker2
File
- tests/
modules/ automatic_updates_test2/ src/ ReadinessChecker/ TestChecker2.php, line 11
Namespace
Drupal\automatic_updates_test2\ReadinessCheckerView source
class TestChecker2 extends TestChecker1 {
protected const STATE_KEY = 'automatic_updates_test2.checker_results';
public static function getSubscribedEvents() {
$events[AutomaticUpdatesEvents::READINESS_CHECK][] = [
'runPreChecks',
4,
];
$events[AutomaticUpdatesEvents::PRE_START][] = [
'runStartChecks',
4,
];
return $events;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
TestChecker1:: |
protected | property | The state service. | |
TestChecker1:: |
protected | function | Adds test result to an update event from a state setting. | |
TestChecker1:: |
public | function | Adds test results for the readiness check event. | |
TestChecker1:: |
public | function | Adds test results for the pre-commit event. | |
TestChecker1:: |
public | function | Adds test results for the pre-start event. | |
TestChecker1:: |
public static | function | Sets messages for this readiness checker. | |
TestChecker1:: |
public | function | Creates a TestChecker object. | |
TestChecker2:: |
public static | function |
Returns an array of event names this subscriber wants to listen to. Overrides TestChecker1:: |
|
TestChecker2:: |
protected | constant |
The key to use store the test results. Overrides TestChecker1:: |