diff --git a/core/modules/language/tests/Drupal/language/Tests/LanguageNegotiationUrlTest.php b/core/modules/language/tests/Drupal/language/Tests/LanguageNegotiationUrlTest.php index 1f4a73d..dbcda9d 100644 --- a/core/modules/language/tests/Drupal/language/Tests/LanguageNegotiationUrlTest.php +++ b/core/modules/language/tests/Drupal/language/Tests/LanguageNegotiationUrlTest.php @@ -82,7 +82,8 @@ public function testDomain($http_host, $domains, $expected_langcode) { ->with('url') ->will($this->returnValue($config_data)); - $config = $this->getMock('Drupal\Core\Config\ConfigFactory') + $config = $this->getMockBuilder('Drupal\Core\Config\ConfigFactory') + ->disableOriginalConstructor() ->getMock(); $config->expects($this->any()) ->method('get') @@ -101,7 +102,7 @@ public function testDomain($http_host, $domains, $expected_langcode) { * Provides data for the domain test. * * @return array - * An array of data for checking domain negotation. + * An array of data for checking domain negotiation. */ public function providerTestDomain() {