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
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
Download
Patches
Plain diff
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
Jakob P
requested to merge
issue/config_readonly-2910445:2910445-add-a-warning
into
8.x-1.x
9 months ago
Overview
0
Commits
3
Pipelines
3
Changes
2
Expand
Closes
#2910445
0
0
Merge request reports
Compare
8.x-1.x
version 2
bf5bcd85
9 months ago
version 1
d5615726
9 months ago
8.x-1.x (base)
and
latest version
latest version
bf5bcd85
3 commits,
9 months ago
version 2
bf5bcd85
3 commits,
9 months ago
version 1
d5615726
2 commits,
9 months ago
2 files
+
56
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
tests/src/Functional/ReadOnlyConfigTest.php
+
20
−
0
Options
@@ -141,4 +141,24 @@ class ReadOnlyConfigTest extends ReadOnlyConfigTestBase {
$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