function ConfigTest::testSkipClean
@covers ::getAllCleanupPaths
File
-
core/
tests/ Drupal/ Tests/ Composer/ Plugin/ VendorHardening/ ConfigTest.php, line 116
Class
- ConfigTest
- @coversDefaultClass Drupal\Composer\Plugin\VendorHardening\Config[[api-linebreak]] @group VendorHardening
Namespace
Drupal\Tests\Composer\Plugin\VendorHardeningCode
public function testSkipClean() : void {
$root = $this->createMock(RootPackageInterface::class);
$root->expects($this->once())
->method('getExtra')
->willReturn([
'drupal-core-vendor-hardening' => [
'composer/composer' => FALSE,
],
]);
$plugin_config = (new Config($root))->getAllCleanupPaths();
$this->assertArrayNotHasKey('composer/composer', $plugin_config);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.