Skip to content
Snippets Groups Projects

Issue #3230507: Create build tests for case where site is using core recommended Composer project

Merged Issue #3230507: Create build tests for case where site is using core recommended Composer project
1 unresolved thread
1 unresolved thread
Compare and Show latest version
2 files
+ 16
16
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -4,7 +4,6 @@ namespace Drupal\Tests\automatic_updates\Build;
use Drupal\BuildTests\QuickStart\QuickStartTestBase;
use Drupal\Component\Utility\Html;
use Drupal\Component\Utility\NestedArray;
use Drupal\Tests\automatic_updates\Traits\LocalPackagesTrait;
use Drupal\Tests\automatic_updates\Traits\SettingsTrait;
@@ -138,21 +137,6 @@ END;
$this->addSettings($php, $this->getDocRoot());
}
/**
* Alters a package's composer.json file.
*
* @param string $package_dir
* The package directory.
* @param array $changes
* The changes to merge into composer.json.
*/
protected function alterPackage(string $package_dir, array $changes): void {
$composer = $package_dir . DIRECTORY_SEPARATOR . 'composer.json';
$data = $this->readJson($composer);
$data = NestedArray::mergeDeep($data, $changes);
$this->writeJson($composer, $data);
}
/**
* Uses our already-installed dependencies to build a test site to update.
*/
Loading