function ComposerValidatorTest::testLinkToOnlineHelp

Tests that invalid configuration links to online help, if available.

@dataProvider providerLinkToOnlineHelp

Parameters

array $config: The Composer configuration to set.

\Drupal\Core\StringTranslation\TranslatableMarkup[] $expected_messages: The expected validation error messages.

File

core/modules/package_manager/tests/src/Kernel/ComposerValidatorTest.php, line 155

Class

ComposerValidatorTest
@covers \Drupal\package_manager\Validator\ComposerValidator @group package_manager @internal

Namespace

Drupal\Tests\package_manager\Kernel

Code

public function testLinkToOnlineHelp(array $config, array $expected_messages) : void {
    $this->enableModules([
        'help',
    ]);
    (new ActiveFixtureManipulator())->addConfig($config)
        ->commitChanges();
    $result = ValidationResult::createError($expected_messages, t("Composer settings don't satisfy Package Manager's requirements."));
    $this->assertStatusCheckResults([
        $result,
    ]);
}

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