diff --git a/tests/lib/AppFramework/Db/MapperTestUtility.php b/tests/lib/AppFramework/Db/MapperTestUtility.php index 69f0ad4eb67..bbc9b56701e 100644 --- a/tests/lib/AppFramework/Db/MapperTestUtility.php +++ b/tests/lib/AppFramework/Db/MapperTestUtility.php @@ -49,7 +49,7 @@ abstract class MapperTestUtility extends \Test\TestCase { ->disableOriginalConstructor() ->getMock(); - $this->query = $this->getMock('\PDOStatement'); + $this->query = $this->createMock('\PDOStatement'); $this->queryAt = 0; $this->prepareAt = 0; $this->iterators = [];