Skip to content
Snippets Groups Projects
Commit 7192da24 authored by ambient.impact's avatar ambient.impact
Browse files

DataAttributesTest: Replaced asserts that don't exist in Drupal 10, ugh.

parent 035f5aa4
No related branches found
Tags 7.x-2.3
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment