Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
config_readonly
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
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
config_readonly
Merge requests
!16
Resolve
#2910445
"Add a warning"
Code
Review changes
Check out branch
Open in Workspace
Download
Patches
Plain diff
Expand sidebar
Merged
Resolve
#2910445
"Add a warning"
issue/config_readonly-2910445:2910445-add-a-warning
into
8.x-1.x
Overview
0
Commits
3
Pipelines
3
Changes
2
Merged
Resolve #2910445 "Add a warning"
Jakob P
requested to merge
issue/config_readonly-2910445:2910445-add-a-warning
into
8.x-1.x
Jul 2, 2024
Overview
0
Commits
3
Pipelines
3
Changes
2
Closes
#2910445
0
0
Merge request reports
Compare
8.x-1.x
version 2
bf5bcd85
Jul 2, 2024
version 1
d5615726
Jul 2, 2024
8.x-1.x (base)
and
latest version
latest version
bf5bcd85
3 commits,
Jul 2, 2024
version 2
bf5bcd85
3 commits,
Jul 2, 2024
version 1
d5615726
2 commits,
Jul 2, 2024
2 files
+
56
−
0
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
tests/src/Functional/ReadOnlyConfigTest.php
+
20
−
0
View file @ bf5bcd85
Edit in single-file editor
Open in Web IDE
Show full file
@@ -141,4 +141,24 @@ class ReadOnlyConfigTest extends ReadOnlyConfigTestBase {
@@ -141,4 +141,24 @@ class ReadOnlyConfigTest extends ReadOnlyConfigTestBase {
$this
->
assertSession
()
->
pageTextContains
(
$this
->
message
);
$this
->
assertSession
()
->
pageTextContains
(
$this
->
message
);
}
}
/**
* Test the status page to ensure the correct message is displayed.
*
* @see https://www.drupal.org/project/config_readonly/issues/2910445
*/
public
function
testModuleStatusPage
()
{
// Verify if we can successfully access file system route.
$status_url
=
Url
::
fromRoute
(
'system.status'
);
$this
->
drupalGet
(
$status_url
);
$this
->
assertSession
()
->
statusCodeEquals
(
200
);
// Status page displays REQUIREMENT_WARNING because read-only is disabled.
$this
->
assertSession
()
->
pageTextContains
(
"The Config Read-only module is enabled but not active."
);
// Switch forms to read-only.
$this
->
turnOnReadOnlySetting
();
$this
->
drupalGet
(
$status_url
);
// Status page displays REQUIREMENT_INFO because read-only is enabled.
$this
->
assertSession
()
->
pageTextContains
(
"The Config Read-only module is enabled and active."
);
}
}
}
Loading