public function ConfigTest::testGetPathsForPackageMixedCase in Drupal 10
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/Composer/Plugin/VendorHardening/ConfigTest.php \Drupal\Tests\Composer\Plugin\VendorHardening\ConfigTest::testGetPathsForPackageMixedCase()
- 9 core/tests/Drupal/Tests/Composer/Plugin/VendorHardening/ConfigTest.php \Drupal\Tests\Composer\Plugin\VendorHardening\ConfigTest::testGetPathsForPackageMixedCase()
@covers ::getPathsForPackage
File
- core/
tests/ Drupal/ Tests/ Composer/ Plugin/ VendorHardening/ ConfigTest.php, line 21
Class
- ConfigTest
- @coversDefaultClass Drupal\Composer\Plugin\VendorHardening\Config @group VendorHardening
Namespace
Drupal\Tests\Composer\Plugin\VendorHardeningCode
public function testGetPathsForPackageMixedCase() {
$config = $this
->getMockBuilder(Config::class)
->onlyMethods([
'getAllCleanupPaths',
])
->disableOriginalConstructor()
->getMock();
$config
->expects($this
->once())
->method('getAllCleanupPaths')
->willReturn([
'package' => [
'path',
],
]);
$this
->assertSame([
'path',
], $config
->getPathsForPackage('pACKage'));
}