Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
automatic_updates
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
automatic_updates
Merge requests
!27
Issue
#3230507
: Create build tests for case where site is using core recommended Composer project
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Issue
#3230507
: Create build tests for case where site is using core recommended Composer project
issue/automatic_updates-3230507:3230507-create-build-tests
into
8.x-2.x
Overview
2
Commits
26
Pipelines
0
Changes
1
Merged
Adam G-H
requested to merge
issue/automatic_updates-3230507:3230507-create-build-tests
into
8.x-2.x
3 years ago
Overview
2
Commits
26
Pipelines
0
Changes
1
Expand
0
0
Merge request reports
Viewing commit
57d32f6a
Prev
Next
Show latest version
1 file
+
3
−
3
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
57d32f6a
Rephrase comment
· 57d32f6a
Adam G-H
authored
3 years ago
tests/src/Build/AttendedUpdateTestBase.php
+
3
−
3
Options
@@ -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 live
s
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