diff --git a/lib/custom/tests/MW/View/Engine/TwigTest.php b/lib/custom/tests/MW/View/Engine/TwigTest.php
index <HASH>..<HASH> 100644
--- a/lib/custom/tests/MW/View/Engine/TwigTest.php
+++ b/lib/custom/tests/MW/View/Engine/TwigTest.php
@@ -21,7 +21,7 @@ class TwigTest extends \PHPUnit\Framework\TestCase
 		}
 
 		$this->mock = $this->getMockBuilder( '\Twig_Environment' )
-			->setMethods( array( 'getLoader', 'loadTemplate' ) )
+			->setMethods( array( 'getExtensions', 'getLoader', 'loadTemplate' ) )
 			->disableOriginalConstructor()
 			->getMock();
 
@@ -39,6 +39,10 @@ class TwigTest extends \PHPUnit\Framework\TestCase
 	{
 		$v = new \Aimeos\MW\View\Standard( [] );
 
+		$this->mock->expects( $this->once() )->method( 'getExtensions' )
+			->will( $this->returnValue( array( [] ) ) );
+
+
 		$view = $this->getMockBuilder( '\Twig_Template' )
 			->setConstructorArgs( array ( $this->mock ) )
 			->setMethods( array( 'getBlockNames', 'render', 'renderBlock' ) )
Adapt tests for new Twig versions