From 543fdc28d8d60eb2ec1c20f0662dd465e2682461 Mon Sep 17 00:00:00 2001 From: maithri <maithri@3580855.no-reply.drupal.org> Date: Thu, 13 Feb 2020 13:10:26 +0000 Subject: [PATCH] Issue #3035454 by Maithri Shetty, Steven Jones: Replace deprecated method getMock calls with createMock --- tests/src/Unit/AdvDefTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/src/Unit/AdvDefTest.php b/tests/src/Unit/AdvDefTest.php index 1ab8396..240bc37 100644 --- a/tests/src/Unit/AdvDefTest.php +++ b/tests/src/Unit/AdvDefTest.php @@ -61,7 +61,7 @@ class AdvDefTest extends BinaryTestCase { $advdef = new AdvDef(['data' => $config], 'advdef', [], $loggerMock, $imageFactoryMock, $fileSystemMock, $shellOperationsMock); - $imagePNGMock = $this->createtMock('\Drupal\Core\Image\ImageInterface'); + $imagePNGMock = $this->createMock('\Drupal\Core\Image\ImageInterface'); $imagePNGMock->method('getMimeType')->willReturn('image/png'); $imageFactoryMock->method('get')->willReturn($imagePNGMock); -- GitLab