localgovdrupal / localgov_menu_link_group

Present menu links in groups.
0 stars 0 forks source link

Drupal 9 coding standards and deprecation issues #8

Closed stephen-cox closed 3 years ago

stephen-cox commented 3 years ago

Coding standards

FILE: .../localgov_menu_link_group/src/Form/LocalGovMenuLinkGroupForm.php
----------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 2 LINES
----------------------------------------------------------------------
 42 | ERROR | The array declaration extends to column 120 (the limit
    |       | is 80). The array content should be split up over
    |       | multiple lines
 42 | ERROR | The array declaration extends to column 131 (the limit
    |       | is 80). The array content should be split up over
    |       | multiple lines
 84 | ERROR | The array declaration extends to column 92 (the limit
    |       | is 80). The array content should be split up over
    |       | multiple lines
----------------------------------------------------------------------

Deprecations

------ --------------------------------------------------------------------------------------- 
  Line   modules/contrib/localgov_menu_link_group/tests/src/Kernel/CrossMenuAssignmentTest.php  
 ------ --------------------------------------------------------------------------------------- 
  82     Call to deprecated method assertEqual() of class Drupal\KernelTests\KernelTestBase:    
         in drupal:8.0.0 and is removed from drupal:10.0.0. Use                                 
           $this->assertEquals() instead.                                                       
  86     Call to deprecated method assertEqual() of class Drupal\KernelTests\KernelTestBase:    
         in drupal:8.0.0 and is removed from drupal:10.0.0. Use                                 
           $this->assertEquals() instead.                                                       
  90     Call to deprecated method assertEqual() of class Drupal\KernelTests\KernelTestBase:    
         in drupal:8.0.0 and is removed from drupal:10.0.0. Use                                 
           $this->assertEquals() instead.                                                       
  94     Call to deprecated method assertEqual() of class Drupal\KernelTests\KernelTestBase:    
         in drupal:8.0.0 and is removed from drupal:10.0.0. Use                                 
           $this->assertEquals() instead.                                                       
 ------ --------------------------------------------------------------------------------------- 

 ------ ------------------------------------------------------------------------------------- 
  Line   modules/contrib/localgov_menu_link_group/tests/src/Kernel/GroupConfigImportTest.php  
 ------ ------------------------------------------------------------------------------------- 
  44     Call to deprecated method assertEqual() of class Drupal\KernelTests\KernelTestBase:  
         in drupal:8.0.0 and is removed from drupal:10.0.0. Use                               
           $this->assertEquals() instead.                                                     
  70     Call to deprecated method assertEqual() of class Drupal\KernelTests\KernelTestBase:  
         in drupal:8.0.0 and is removed from drupal:10.0.0. Use                               
           $this->assertEquals() instead.                                                     
 ------ -------------------------------------------------------------------------------------