drupal-check suggestions

Created on 5 October 2023, about 1 year ago
Updated 1 November 2023, about 1 year ago

Problem/Motivation

There are some minor issues drupal-check found.

Steps to reproduce

$ vendor/bin/drupal-check --drupal-root $CI_PROJECT_DIR/$_WEB_ROOT $CI_PROJECT_DIR/$_WEB_ROOT/modules/custom/$CI_PROJECT_NAME
  0/34 [░░░░░░░░░░░░░░░░░░░░░░░░░░░░]   0%
 34/34 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%
 ------ ----------------------------------------------------------------------- 
  Line   tests/src/Unit/AccessControlHandlerTest.php                            
 ------ ----------------------------------------------------------------------- 
  96     Class Drupal\moderation_note\AccessControlHandler constructor invoked  
         with 4 parameters, 1 required.                                         
 ------ ----------------------------------------------------------------------- 
 ------ ----------------------------------------------------------------- 
  Line   tests/src/Unit/Service/MenuCountServiceTest.php                  
 ------ ----------------------------------------------------------------- 
  90     Call to an undefined method                                      
         Prophecy\Prophecy\ObjectProphecy<Drupal\Core\Url>::fromRoute().  
  143    Call to an undefined method                                      
         Prophecy\Prophecy\ObjectProphecy<Drupal\Core\Url>::fromRoute().  
  196    Call to an undefined method                                      
         Prophecy\Prophecy\ObjectProphecy<Drupal\Core\Url>::fromRoute().  
  248    Call to an undefined method                                      
         Prophecy\Prophecy\ObjectProphecy<Drupal\Core\Url>::fromRoute().  
  298    Call to an undefined method                                      
         Prophecy\Prophecy\ObjectProphecy<Drupal\Core\Url>::fromRoute().  
  348    Call to an undefined method                                      
         Prophecy\Prophecy\ObjectProphecy<Drupal\Core\Url>::fromRoute().  
 ------ ----------------------------------------------------------------- 
 [ERROR] Found 7 errors                                                         
Thanks for using drupal-check!

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Fixed

Version

1.0

Component

Code

Created by

🇺🇸United States bluegeek9

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024