function ComposerValidatorTest::testComposerSettingsValidation
Tests that Composer's settings are validated.
Attributes
#[DataProvider('providerComposerSettingsValidation')]
Parameters
array $config: The config to set.
\Drupal\package_manager\ValidationResult[] $expected_results: The expected validation results, if any.
File
-
core/
modules/ package_manager/ tests/ src/ Kernel/ ComposerValidatorTest.php, line 109
Class
- ComposerValidatorTest
- Tests Composer Validator.
Namespace
Drupal\Tests\package_manager\KernelCode
public function testComposerSettingsValidation(array $config, array $expected_results) : void {
(new ActiveFixtureManipulator())->addConfig($config)
->commitChanges()
->updateLock();
$this->assertStatusCheckResults($expected_results);
$this->assertResults($expected_results, PreCreateEvent::class);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.