function ComposerValidatorTest::testComposerSettingsValidationDuringPreApply

Tests that Composer's settings are validated during pre-apply.

@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 116

Class

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

Namespace

Drupal\Tests\package_manager\Kernel

Code

public function testComposerSettingsValidationDuringPreApply(array $config, array $expected_results) : void {
    $this->getStageFixtureManipulator()
        ->addConfig($config);
    $this->assertResults($expected_results, PreApplyEvent::class);
}

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