@trigger_error('\Drupal\Tests\PhpunitCompatibilityTrait::getMock() is deprecated in drupal:8.5.0 and is removed from drupal:9.0.0. Use \Drupal\Tests\PhpunitCompatibilityTrait::createMock() instead. See https://www.drupal.org/node/2907725',E_USER_DEPRECATED);
if(!$this->supports('getMock')){
$mock=$this->getMockBuilder($originalClassName)
->setMethods($methods)
->setConstructorArgs($arguments)
...
...
@@ -88,34 +87,6 @@ public function getMock($originalClassName, $methods = [], array $arguments = []
* Tests that getMock is available and calls the correct parent method.
* Tests that getMock is available.
*
* @covers ::getMock
* @dataProvider providerMockVersions
* @group legacy
* @expectedDeprecation \Drupal\Tests\PhpunitCompatibilityTrait::getMock() is deprecated in drupal:8.5.0 and is removed from drupal:9.0.0. Use \Drupal\Tests\PhpunitCompatibilityTrait::createMock() instead. See https://www.drupal.org/node/2907725
* Tests that createMock is available and calls the correct parent method.
*
* @covers ::createMock
* @dataProvider providerMockLegacyVersions
* @group legacy
* @expectedDeprecation \Drupal\Tests\PhpunitCompatibilityTrait::getMock() is deprecated in drupal:8.5.0 and is removed from drupal:9.0.0. Use \Drupal\Tests\PhpunitCompatibilityTrait::createMock() instead. See https://www.drupal.org/node/2907725