function ConfigTest::testGetPathsForPackageMixedCase

Same name and namespace in other branches
  1. 9 core/tests/Drupal/Tests/Composer/Plugin/VendorHardening/ConfigTest.php \Drupal\Tests\Composer\Plugin\VendorHardening\ConfigTest::testGetPathsForPackageMixedCase()
  2. 8.9.x core/tests/Drupal/Tests/Composer/Plugin/VendorHardening/ConfigTest.php \Drupal\Tests\Composer\Plugin\VendorHardening\ConfigTest::testGetPathsForPackageMixedCase()
  3. 10 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 20

Class

ConfigTest
@coversDefaultClass <a href="/api/drupal/composer%21Plugin%21VendorHardening%21Config.php/class/Config/11.x" title="Determine configuration." class="local">Drupal\Composer\Plugin\VendorHardening\Config</a> @group VendorHardening

Namespace

Drupal\Tests\Composer\Plugin\VendorHardening

Code

public function testGetPathsForPackageMixedCase() : void {
    $config = $this->getMockBuilder(Config::class)
        ->onlyMethods([
        'getAllCleanupPaths',
    ])
        ->disableOriginalConstructor()
        ->getMock();
    $config->expects($this->once())
        ->method('getAllCleanupPaths')
        ->willReturn([
        'package' => [
            'path',
        ],
    ]);
    $this->assertSame([
        'path',
    ], $config->getPathsForPackage('pACKage'));
}

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