Remove useless twig class aliases

[MAILPOET-2692]
This commit is contained in:
Rostislav Wolny
2020-05-27 14:17:36 +02:00
committed by Veljko V
parent bac418e2b5
commit 5ce08d045e
2 changed files with 5 additions and 2 deletions

View File

@@ -9,7 +9,7 @@ use MailPoet\WP\Functions as WPFunctions;
class FunctionsTest extends \MailPoetTest {
public function testItExecutesIsRtlFunction() {
$template = ['template' => '{% if is_rtl() %}rtl{% endif %}'];
$twig = new \MailPoetVendor\Twig_Environment(new \MailPoetVendor\Twig_Loader_Array($template));
$twig = new \MailPoetVendor\Twig_Environment(new \MailPoetVendor\Twig\Loader\ArrayLoader($template));
WPFunctions::set(Stub::make(new WPFunctions, [
'isRtl' => Stub::consecutive(true, false),
]));