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 file
+ 3
3
Compare changes
  • Side-by-side
  • Inline
@@ -110,7+110,7 @@
*
* @param string $command
* The command to run, excluding the 'composer' prefix.
*/
protected function runComposer(string $command): void {
$this->executeCommand("composer $command");
$this->assertCommandSuccessful();
@@ -149,7+149,7 @@
* Uses our already-installed dependencies to build a test site to update.
*/
protected function createTestSite(): void {
// The project-level composer.json should live in workspace root directory,
// which may or may not be the same directory as the web root (i.e., where
// Drupal itself lives).
// The project-level composer.json lives in the workspace root directory,
// which may or may not be the same directory as the web root (where Drupal
// itself lives).
$composer = $this->getWorkspaceDirectory() . DIRECTORY_SEPARATOR . 'composer.json';
$this->writeJson($composer, $this->getInitialConfiguration());
$this->runComposer('update');
Loading