diff --git a/core/modules/config_translation/tests/src/ConfigMapperManagerTest.php b/core/modules/config_translation/tests/src/ConfigMapperManagerTest.php index 8163638..86a4719 100644 --- a/core/modules/config_translation/tests/src/ConfigMapperManagerTest.php +++ b/core/modules/config_translation/tests/src/ConfigMapperManagerTest.php @@ -170,9 +170,7 @@ protected function getElement(array $definition) { * A nested schema element, containing the passed-in elements. */ protected function getNestedElement(array $elements) { - $nested_element = $this->getMockBuilder('Drupal\Core\Config\Schema\ListElementInterface') - ->disableOriginalConstructor() - ->getMock(); + $nested_element = $this->getMock('Drupal\Core\Config\Schema\ListElementInterface'); $nested_element->expects($this->once()) ->method('getIterator') ->will($this->returnValue(new \ArrayIterator($elements)));