--- a/core/tests/Drupal/Tests/Core/Access/AccessResultTest.php +++ b/core/tests/Drupal/Tests/Core/Access/AccessResultTest.php @@ -433,7 +433,9 @@ public function testCacheTags() { $this->assertEquals($a, $b); // ::cacheUntilConfigurationChanges() convenience method. - $configuration = $this->getMock('\Drupal\Core\Config\ConfigBase'); + $configuration = $this->getMockBuilder('\Drupal\Core\Config\ConfigBase') + ->disableOriginalConstructor() + ->getMock(); $configuration->expects($this->any()) ->method('getCacheTags') ->will($this->returnValue(array('config:foo.bar.baz')));