Deprecation warnings in tests for withConsecutive()

Created on 13 September 2023, about 1 year ago
Updated 14 September 2023, about 1 year ago

Problem/Motivation

drupal-check reports 6 errors in 1 file inside the tests directory:

------ ------------------------------------------------------------------------------ 
  Line   tests/src/Unit/ComponentsRegistryTest.php  
 ------ ------------------------------------------------------------------------------ 
  301    Call to deprecated method withConsecutive() of class                          
         PHPUnit\Framework\MockObject\Builder\InvocationMocker.                        
  586    Call to deprecated method withConsecutive() of class                          
         PHPUnit\Framework\MockObject\Builder\InvocationMocker.                        
  592    Call to deprecated method withConsecutive() of class                          
         PHPUnit\Framework\MockObject\Builder\InvocationMocker.                        
  775    Call to deprecated method withConsecutive() of class                          
         PHPUnit\Framework\MockObject\Builder\InvocationMocker.                        
  1472   Call to deprecated method withConsecutive() of class                          
         PHPUnit\Framework\MockObject\Builder\InvocationMocker.                        
  1480   Call to deprecated method withConsecutive() of class                          
         PHPUnit\Framework\MockObject\Builder\InvocationMocker.                        
 ------ ------------------------------------------------------------------------------

Steps to reproduce

Setup and run drupal-check using Drupal 9.5.x.

Proposed resolution

Update the code to fix the errors.

🐛 Bug report
Status

Active

Version

3.0

Component

Code

Created by

🇺🇸United States jonraedeke

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

Comments & Activities

Production build 0.71.5 2024