function SettingsValidatorTest::providerSettingsValidation

Data provider for testSettingsValidation().

Return value

mixed[][] The test cases.

File

core/modules/package_manager/tests/src/Kernel/SettingsValidatorTest.php, line 24

Class

SettingsValidatorTest
@covers \Drupal\package_manager\Validator\SettingsValidator @group package_manager @internal

Namespace

Drupal\Tests\package_manager\Kernel

Code

public static function providerSettingsValidation() : array {
    $result = ValidationResult::createError([
        t('The <code>update_fetch_with_http_fallback</code> setting must be disabled.'),
    ]);
    return [
        'HTTP fallback enabled' => [
            TRUE,
            [
                $result,
            ],
        ],
        'HTTP fallback disabled' => [
            FALSE,
            [],
        ],
    ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.