You are here

protected function UpdateTestBase::copyPackage in Automatic Updates 8.2

1 call to UpdateTestBase::copyPackage()
CoreUpdateTest::getConfigurationForUpdate in tests/src/Build/CoreUpdateTest.php
Returns composer.json changes that are needed to update core.

File

tests/src/Build/UpdateTestBase.php, line 51

Class

UpdateTestBase
Base class for tests that perform in-place updates.

Namespace

Drupal\Tests\automatic_updates\Build

Code

protected function copyPackage(string $source_dir, string $destination_dir = NULL) : string {
  return $this
    ->traitCopyPackage($source_dir, $destination_dir ?: $this
    ->getWorkspaceDirectory());
}