function SettingsValidatorTest::testSettingsValidationDuringPreApply
Tests settings validation during pre-apply.
@dataProvider providerSettingsValidation
Parameters
bool $setting: The value of the update_fetch_with_http_fallback setting.
\Drupal\package_manager\ValidationResult[] $expected_results: The expected validation results.
File
-
core/
modules/ package_manager/ tests/ src/ Kernel/ SettingsValidatorTest.php, line 59
Class
- SettingsValidatorTest
- @covers \Drupal\package_manager\Validator\SettingsValidator @group package_manager @internal
Namespace
Drupal\Tests\package_manager\KernelCode
public function testSettingsValidationDuringPreApply(bool $setting, array $expected_results) : void {
$this->addEventTestListener(function () use ($setting) : void {
$this->setSetting('update_fetch_with_http_fallback', $setting);
});
$this->assertResults($expected_results, PreApplyEvent::class);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.