Closed (fixed)
Project:
Node Class
Version:
2.0.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
1 Apr 2026 at 14:02 UTC
Updated:
30 Apr 2026 at 09:00 UTC
Jump to comment: Most recent
Even for this simple module, it's good to add a functional test to ensure classes are added to the node. In the issue: https://www.drupal.org/project/node_class/issues/3582631, I added pipelines.
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
vitaliyb98 commentedComment #5
anybodyNice @vitaliyb98! I added some comments and this will need the new permission!
Comment #6
vitaliyb98 commentedMade changes according to your comments, however, "phpstan (previous major)" failed because
Comment #7
anybody@vitaliyb98 thanks, I think that annotation may not be supported in D10?
Comment #8
vitaliyb98 commentedYes, I think it can be ignored using // @phpstan-ignore attribute.notFound, but not sure that is a good idea
Comment #9
vitaliyb98 commented@anybody, I added phpstan.neon with an exception for those notices from phpstan pipelines for previous major version (similar approach used for commerce module: https://git.drupalcode.org/project/commerce/-/blob/3.x/phpstan.neon?ref_...)
Comment #10
anybodyMhm I don't really like that approach. It will mute these errors not only for previous major. Even though Commerce does it...
Instead then let's allow phpstan to fail for previous major (in .gitlab-ci.yml)
Comment #11
vitaliyb98 commentedHi, nice idea, will do that soon
Comment #12
vitaliyb98 commentedComment #13
anybodyGreat! Thank you @vitaliyb98! Merging!
Comment #15
anybodyThe failing test will heal itself with Drupal 10 EOL / D12.
Comment #16
anybody