Problem/Motivation
drupal-check results on commit hash:
source : [git] https://git.drupal.org/project/menu_trail_by_path eb3a9f735dc6e96de391d3f9d854016facea41dc
source : http://cgit.drupalcode.org/menu_trail_by_path
------ --------------------------------------------------------------------
Line src/Tests/MenuTrailByPathActiveTrailHtmlClassTest.php
------ --------------------------------------------------------------------
18 Usage of deprecated trait
Drupal\system\Tests\Menu\AssertMenuActiveTrailTrait in class
Drupal\menu_trail_by_path\Tests\MenuTrailByPathActiveTrailHtmlClas
sTest.
------ --------------------------------------------------------------------
[ERROR] Found 1 error
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | 3042759-9-interdiff.txt | 2.97 KB | berdir |
| #9 | 3042759-9.patch | 3.92 KB | berdir |
| #8 | 3042759-8.patch | 2.98 KB | andreyjan |
| #8 | 3042759-interdiff--6-8.txt | 1.87 KB | andreyjan |
| #6 | 3042759-6.patch | 1.91 KB | sahana _n |
Comments
Comment #2
sergiu stici commentedHere is the patch, please review.
Comment #3
berdirIt's not as simple as that, the trait is deprecated because it's now a BrowserTestBase test, but we still are a simpletest test. That should be updated and moved to the correct place, namespace and base class.
Also, lets mark this as compatible with D9 by adding the constraint: https://www.drupal.org/node/3070687 to info.yml and composer.json.
The trait was deprecated in 8.4 already, so I think it's fine to just say ^8 || ^9, we could make it a ^8.4 in composer.json.
Comment #4
sahana _n commentedPlease review the patch.
Comment #5
jaykandariRunning drupal-check retrusn following errors:
Comment #6
sahana _n commentedPlease review the patch.
Comment #7
berdirjust changing the base class is not enough, the class needs to be moved to tests/src/Functional and the namespace has to be updated.
Comment #8
andreyjan commentedFixed and added some code improvements.
Comment #9
berdirWas unsure about this one. There are theme install and path alias related 8.8 only deprecations, but all deprecations are actually only in/with the test.
I've updated it to require 8.8 and will just let it sit here for a while, will do a release that is compatible with earlier versions first.
I've also fixed the license in composer.json (a drupal module must be GPL) and removed the version line in .info.yml.
Comment #10
berdirComment #12
berdirCommitted.