Closed (fixed)
Project:
Domain Path
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
19 Dec 2023 at 22:34 UTC
Updated:
10 Jan 2024 at 22:09 UTC
Jump to comment: Most recent
There are two errors showing for the phpunit output coming from the Gitlab CI testing.
There were 2 errors:
1) Drupal\Tests\domain_path\Functional\DomainPathDomainTest::testDomainPathGet
GuzzleHttp\Exception\ConnectException: cURL error 6: Could not resolve host: one.localhost (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for http://one.localhost/web//cQFSUSNT
[ ... ]
2) Drupal\Tests\domain_path\Functional\DomainPathNodeAliasTest::testDomainPathNodeAliasesFill
Error: Call to undefined method Drupal\Tests\domain_path\Functional\DomainPathNodeAliasTest::drupalPostForm()
View output of testing: https://git.drupalcode.org/issue/domain_path-3409798/-/jobs/508410
Resolve issues in code so all phpunit tests are passing.
N/A
N/A
N/A
N/A
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
ddavisboxleitner commentedI resolved the first error by adding some /etc/hosts entries for the test queries to target. Added settings to gitlab-ci.yml file.
The second error will need an update. The function drupalPostForm() is being used and is being deprecated.
Details about the change heeded described here: https://www.drupal.org/node/3168858
Comment #4
ddavisboxleitner commentedPHPunit tests are now passing.
I had to add some error checking in DomainPathHelper class on the alterEntityForm() function. We can't assume pathauto will be installed.
Comment #5
ddavisboxleitner commentedComment #6
raywalters commentedReviewed and verified that phpunit tests are passing in the pipeline.
Comment #7
raywalters commentedComment #10
i-trokhanenkoMerged. Thanks!
Comment #11
i-trokhanenko