function ComposerValidatorTest::providerLinkToOnlineHelp
Data provider for ::testLinkToOnlineHelp().
Return value
array[] The test cases.
File
-
core/
modules/ package_manager/ tests/ src/ Kernel/ ComposerValidatorTest.php, line 127
Class
- ComposerValidatorTest
- @covers \Drupal\package_manager\Validator\ComposerValidator @group package_manager @internal
Namespace
Drupal\Tests\package_manager\KernelCode
public static function providerLinkToOnlineHelp() : array {
return [
'TLS disabled' => [
[
'disable-tls' => TRUE,
],
[
t('TLS must be enabled for HTTPS Composer downloads. See <a href="/admin/help/package_manager#package-manager-requirements">the help page</a> for more information on how to configure Composer to download packages securely.'),
t('You should also check the value of <code>secure-http</code> and make sure that it is set to <code>true</code> or not set at all.'),
],
],
'secure-http is off' => [
[
'secure-http' => FALSE,
],
[
t('HTTPS must be enabled for Composer downloads. See <a href="/admin/help/package_manager#package-manager-requirements">the help page</a> for more information on how to configure Composer to download packages securely.'),
],
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.