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
!902
Issue
#3364748
: Add test coverage for the permissions handling that SiteConfigurationExcluder does for `sites/default`
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Issue
#3364748
: Add test coverage for the permissions handling that SiteConfigurationExcluder does for `sites/default`
issue/automatic_updates-3364748:sites-default-test
into
3.0.x
Overview
0
Commits
4
Pipelines
1
Changes
1
Merged
Adam G-H
requested to merge
issue/automatic_updates-3364748:sites-default-test
into
3.0.x
1 year ago
Overview
0
Commits
4
Pipelines
1
Changes
1
Expand
0
0
Merge request reports
Compare
3.0.x
version 3
2eb44a9e
1 year ago
version 2
1f60d997
1 year ago
version 1
9048b782
1 year ago
3.0.x (base)
and
version 1
latest version
2eb44a9e
4 commits,
1 year ago
version 3
2eb44a9e
4 commits,
1 year ago
version 2
1f60d997
3 commits,
1 year ago
version 1
9048b782
1 commit,
1 year ago
1 file
+
20
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
package_manager/tests/src/Kernel/PathExcluder/SiteConfigurationExcluderTest.php
+
20
−
0
Options
@@ -80,6 +80,26 @@ class SiteConfigurationExcluderTest extends PackageManagerKernelTestBase {
}
}
/**
* Tests that `sites/default` is made writable in the stage directory.
*/
public
function
testDefaultSiteDirectoryPermissions
():
void
{
$project_root
=
$this
->
container
->
get
(
PathLocator
::
class
)
->
getProjectRoot
();
$live_dir
=
$project_root
.
'/sites/default'
;
chmod
(
$live_dir
,
0555
);
$this
->
assertDirectoryIsNotWritable
(
$live_dir
);
$stage
=
$this
->
createStage
();
$stage
->
create
();
$staged_dir
=
$stage
->
getStageDirectory
()
.
'/sites/default'
;
$this
->
assertDirectoryIsWritable
(
$staged_dir
);
$stage
->
require
([
'ext-json:*'
]);
$stage
->
apply
();
$this
->
assertDirectoryIsNotWritable
(
$live_dir
);
}
}
/**
Loading