Closed (fixed)
Project:
Domain Path
Version:
2.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
19 Feb 2026 at 14:20 UTC
Updated:
5 Mar 2026 at 23:00 UTC
Jump to comment: Most recent
It's all in the title.
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
mably commentedComment #4
mably commentedSummary
Significantly improved test coverage for both
domain_pathanddomain_path_pathautomodules by adding comprehensive kernel tests and removing redundant purely-programmatic functional tests that are now covered at the kernel level.New kernel tests — domain_path (8 files, 20 test methods)
$langcodeparameter tocreatePathAlias()for multilingual test supportNew kernel tests — domain_path_pathauto (6 files, 16 test methods)
createPathAlias()trait conflict resolutionRemoved redundant functional tests (4 files)
New functional test
alias_titleconfig setting (name/hostname/url)Notable technical details
$this->container->set('keyvalue', $this->container->get('keyvalue.database'))to persist pathauto state to the database, matching production behavior (pattern from PathautoEntityWithStringIdTest)createPathAlias()override in DomainPathautoKernelTestBase resolves a PHP trait method conflict where PathautoTestHelperTrait -> PathAliasTestTrait::createPathAlias() (no domain_id param) would shadow the parent class versionTest results
Comment #5
mably commentedAdded FunctionalJavascript tests covering the three
#statesinteractions on the node edit form.New files
tests/src/FunctionalJavascript/DomainPathStatesTest.php — 3 tests:
testDomainAccessCheckboxTogglesPathVisibility— checking/unchecking a domain_access checkbox shows/hides the corresponding domain path alias field via#states['visible'].testAllAffiliatesShowsAllPaths— checking "Send to all affiliates" makes all domain path fields visible regardless of individual domain checkboxes.testDeleteCheckboxDisablesAliasFields— creates a node with aliases on 2 domains, then verifies the "Delete all aliases" checkbox disables/re-enables both alias textfields via#states['disabled'].modules/domain_path_pathauto/tests/src/FunctionalJavascript/DomainPathautoStatesTest.php — 2 tests:
testPathautoCheckboxDisablesAliasField— verifies the per-domain pathauto checkbox independently disables/enables its alias textfield.testPathautoAndDeleteBothDisable— creates a node with pathauto-generated aliases, then tests the combinedorlogic where either the pathauto or the delete checkbox can independently disable alias fields.Implementation notes
WebDriverTestBaseand useDomainTestTrait.node_advanced_tabanduse_advanced_groupconfig in setUp() to keep domain access and domain path fields in the main form body (not in vertical tabs), making them directly interactable by WebDriver.PathautoTestHelperTraitto create a/content/[node:title]pattern for the page bundle.Comment #7
mably commented