Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
config_enforce-3357685
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
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
Issue forks
config_enforce-3357685
Commits
7192da24
Commit
7192da24
authored
1 year ago
by
ambient.impact
Browse files
Options
Downloads
Patches
Plain Diff
DataAttributesTest: Replaced asserts that don't exist in Drupal 10, ugh.
parent
035f5aa4
No related branches found
Branches containing commit
Tags
7.x-2.3
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/src/Functional/DataAttributesTest.php
+19
-6
19 additions, 6 deletions
tests/src/Functional/DataAttributesTest.php
with
19 additions
and
6 deletions
tests/src/Functional/DataAttributesTest.php
+
19
−
6
View file @
7192da24
...
...
@@ -73,20 +73,33 @@ class DataAttributesTest extends BrowserTestBase {
*/
public
function
testDataAttributes
():
void
{
$this
->
assertIdentical
(
$this
->
assertTrue
((
$this
->
getConfigEnforceNameDataAttrSelector
(
'system.site'
)
===
'[data-config-enforce-config-name="system.site"]'
),
\sprintf
(
'Data attribute selector for "%s" is "%s" but expected to be "%s".'
,
'system.site'
,
$this
->
getConfigEnforceNameDataAttrSelector
(
'system.site'
),
'[data-config-enforce-config-name="system.site"]'
);
)
);
$this
->
assertIdentical
(
$this
->
assertTrue
((
$this
->
getConfigEnforceStatusDataAttrSelector
(
true
)
===
'[data-config-enforce-config-status="true"]'
),
\sprintf
(
'Data attribute selector is "%s" but expected to be "%s".'
,
$this
->
getConfigEnforceStatusDataAttrSelector
(
true
),
'[data-config-enforce-config-status="true"]'
);
)
);
$this
->
assertIdentical
(
$this
->
assertTrue
((
$this
->
getConfigEnforceStatusDataAttrSelector
(
false
)
===
'[data-config-enforce-config-status="false"]'
),
\sprintf
(
'Data attribute selector is "%s" but expected to be "%s".'
,
$this
->
getConfigEnforceStatusDataAttrSelector
(
false
),
'[data-config-enforce-config-status="false"]'
);
)
);
$this
->
drupalLogin
(
$this
->
adminUser
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment