function ComposerValidatorTest::testComposerSettingsValidation

Tests that Composer's settings are validated.

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

Class

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

Namespace

Drupal\Tests\package_manager\Kernel

Code

public function testComposerSettingsValidation(array $config, array $expected_results) : void {
    (new ActiveFixtureManipulator())->addConfig($config)
        ->commitChanges();
    $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.