diff -u b/core/tests/Drupal/Tests/Core/Template/TwigExtensionTest.php b/core/tests/Drupal/Tests/Core/Template/TwigExtensionTest.php --- b/core/tests/Drupal/Tests/Core/Template/TwigExtensionTest.php +++ b/core/tests/Drupal/Tests/Core/Template/TwigExtensionTest.php @@ -32,7 +32,7 @@ 'optimizations' => 0 )); $twig->addExtension((new TwigExtension()) - ->setGenerators( + ->setDependencies( $this->getMock('Drupal\Core\Routing\UrlGeneratorInterface'), $this->getMock('Drupal\Core\Utility\LinkGeneratorInterface'), $this->getMock('Drupal\Core\Theme\ThemeManagerInterface')