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.
We can use getMockBuilder() instead of getMock()
Comment | File | Size | Author |
---|---|---|---|
#7 | 3090119-7.patch | 782 bytes | goodboy |
|
Comments
Comment #2
goodboyComment #3
goodboyUpgrade_status module show 2 errors
'Call to deprecated method getMock() of class Drupal\Tests\UnitTestCase. Deprecated in Drupal 8.5.0 and will be removed before Drupal 9.0.0. Use \Drupal\Tests\PhpunitCompatibilityTrait::createMock() instead.'
Comment #4
goodboyComment #5
goodboyComment #6
goodboyComment #7
goodboyComment #9
goodboyComment #11
VladimirAusTested. Messaging contributor to generate the release.