Found the following deprecated functions
Call to deprecated function drupal_set_message(). Deprecated in drupal:8.5.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Messenger\MessengerInterface::addMessage() instead.
in the file
web/modules/custom/one_time_password/src/Form/PasswordSetupForm.php
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | 3119395-7-interdiff.txt | 2.63 KB | kim.pepper |
| #7 | 3119395-7.patch | 10.44 KB | kim.pepper |
| #5 | 3119395-5-interdiff.txt | 1.06 KB | kim.pepper |
| #5 | 3119395-5.patch | 8.5 KB | kim.pepper |
| #3 | 3119395-3-interdiff.txt | 7.06 KB | kim.pepper |
Comments
Comment #2
ankithashettyReplaced the deprecated functions to make it drupal 9 ready. Please review the following patch file.
Thank You.
Comment #3
kim.pepperThere are a few more deprecations:
Comment #5
kim.pepperFix test fails.
Comment #6
sam152 commentedCouple of things left to get it passing on 9.0
Comment #7
kim.pepperFixed failing D9 tests. Also found a bug in
\Drupal\Tests\one_time_password\Kernel\UserFieldAttachTest::testFieldAccessThese lines:
$this->assertFalse($this->user->one_time_password->access('delete'), $admin);Should be:
$this->assertFalse($this->user->one_time_password->access('delete', $admin));Was brought up by a phpunit warning thinking $admin was the failure message and should be a string. Parameter types+=10
Comment #9
sam152 commentedGood stuff, nice fix.