You are here

public function VendorHardeningPluginTest::providerFindBinOverlap in Drupal 8

Same name and namespace in other branches
  1. 9 core/tests/Drupal/Tests/Composer/Plugin/VendorHardening/VendorHardeningPluginTest.php \Drupal\Tests\Composer\Plugin\VendorHardening\VendorHardeningPluginTest::providerFindBinOverlap()

File

core/tests/Drupal/Tests/Composer/Plugin/VendorHardening/VendorHardeningPluginTest.php, line 151

Class

VendorHardeningPluginTest
@coversDefaultClass \Drupal\Composer\Plugin\VendorHardening\VendorHardeningPlugin @group VendorHardening

Namespace

Drupal\Tests\Composer\Plugin\VendorHardening

Code

public function providerFindBinOverlap() {
  return [
    [
      [],
      [
        'bin/script',
      ],
      [
        'tests',
      ],
    ],
    [
      [
        'bin/composer' => 'bin/composer',
      ],
      [
        'bin/composer',
      ],
      [
        'bin',
        'tests',
      ],
    ],
    [
      [
        'bin/composer' => 'bin/composer',
      ],
      [
        'bin/composer',
      ],
      [
        'bin/composer',
      ],
    ],
    [
      [],
      [
        'bin/composer',
      ],
      [
        'bin/something_else',
      ],
    ],
    [
      [],
      [
        'test/script',
      ],
      [
        'test/longer',
      ],
    ],
    [
      [
        'bin/very/long/path/script' => 'bin/very/long/path/script',
      ],
      [
        'bin/very/long/path/script',
      ],
      [
        'bin',
      ],
    ],
    [
      [
        'bin/bin/bin' => 'bin/bin/bin',
      ],
      [
        'bin/bin/bin',
      ],
      [
        'bin/bin',
      ],
    ],
    [
      [],
      [
        'bin/bin',
      ],
      [
        'bin/bin/bin',
      ],
    ],
  ];
}