Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Comment | File | Size | Author |
---|---|---|---|
#4 | crop-replace_all_of_deprecated_usages-2855792-4.patch | 9.16 KB | bkhandruk |
|
Comments
Comment #2
bkhandruk CreditAttribution: bkhandruk commentedReplaced all deprecated usages in module.
Comment #3
woprrr CreditAttribution: woprrr as a volunteer commentedThat would be better to use Link::createFromRoute($this->t('View'), 'crop.overview_types'); instead of fromTextAndUrl().
You don't need to change that. Why ? because now have her native implementation of assertEquals() instead KernelTestBase.
IDE show deprecated because KernelTestBase use an deprecated AssertLegacyTrait we need to delete it and use $this->assertEqual of KernelTestBase.
Comment #4
bkhandruk CreditAttribution: bkhandruk commentedThanks, @woprrr. Corrected link creation and assertion uses. The only thing I've made different from #3 is changed $this->assertEqual (trait method) to $this->assertEquals (KernelTestBase method).
Comment #5
bkhandruk CreditAttribution: bkhandruk commentedComment #6
woprrr CreditAttribution: woprrr as a volunteer commentedThat look Ok to me :) Thanks for our job @rocket.man ;)
Comment #7
woprrr CreditAttribution: woprrr at NeoLynk commentedComment #9
woprrr CreditAttribution: woprrr at NeoLynk commentedMerged Thank You for good job.