You are here

protected function LocalPackagesTrait::createPathRepository in Automatic Updates 8.2

Defines a local path repository for a given path.

Parameters

string $path: The path of the repository.

Return value

array The local path repository definition.

4 calls to LocalPackagesTrait::createPathRepository()
CoreUpdateTest::getConfigurationForUpdate in tests/src/Build/CoreUpdateTest.php
Returns composer.json changes that are needed to update core.
LocalPackagesTrait::getLocalPackageRepositories in tests/src/Traits/LocalPackagesTrait.php
Generates local path repositories for a set of installed packages.
UpdateTestBase::createTestSite in tests/src/Build/UpdateTestBase.php
Uses our already-installed dependencies to build a test site to update.
UpdateTestBase::getInitialConfiguration in tests/src/Build/UpdateTestBase.php
Returns the initial data to write to the test site's composer.json.

File

tests/src/Traits/LocalPackagesTrait.php, line 124

Class

LocalPackagesTrait
Provides methods for interacting with installed Composer packages.

Namespace

Drupal\Tests\automatic_updates\Traits

Code

protected function createPathRepository(string $path) : array {
  return [
    'type' => 'path',
    'url' => $path,
    'options' => [
      'symlink' => FALSE,
    ],
  ];
}