https://github.com/mcdwayne/Drupal-9-drupal-check-Report/blob/master/Dru...


 ------ --------------------------------------------------- 
  Line   src/Plugin/TfaSetup/TfaDuoSetup.php                
 ------ --------------------------------------------------- 
  85     Call to deprecated method getUsername() of class   
         Drupal\Core\Session\AccountInterface.              
  191    Call to deprecated function drupal_set_message().  
 ------ --------------------------------------------------- 

 ------ --------------------------------------------------- 
  Line   src/Plugin/TfaValidation/TfaDuoValidation.php      
 ------ --------------------------------------------------- 
  155    Call to deprecated function drupal_set_message().  
  161    Call to deprecated function drupal_set_message().  
  182    Call to deprecated method url() of class Drupal.   
  189    Call to deprecated method url() of class Drupal.   
  213    Call to deprecated function drupal_set_message().  
 ------ --------------------------------------------------- 

 ------ -------------------------------------------------- 
  Line   tests/src/Functional/TfaDuoTest.php               
 ------ -------------------------------------------------- 
  76     Call to deprecated method getUsername() of class  
         Drupal\userntity\User.                          
 ------ -------------------------------------------------- 

 [ERROR] Found 8 errors                                                          

Comments

Manuel Garcia created an issue. See original summary.

manuel garcia’s picture

Issue tags: +Drupal 9 compatibility
manuel garcia’s picture

Status: Active » Needs review
StatusFileSize
new8.29 KB
manuel garcia’s picture

StatusFileSize
new2.12 KB
new8.24 KB

using addError...

manuel garcia’s picture

StatusFileSize
new3.47 KB
new7.2 KB

Let's use the MessengerTrait instead.

Status: Needs review » Needs work

The last submitted patch, 5: 3046501-5.patch, failed testing. View results

manuel garcia’s picture

Status: Needs work » Needs review
StatusFileSize
new2.08 KB
new7.21 KB

manuel garcia’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.