Skip to content

Commit 7794c26

Browse files
committed
Fix tests.
1 parent 0fc9d31 commit 7794c26

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

tests/unit/TwigEnvironmentTest.php

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
use DrupalCodeGenerator\Twig\TwigEnvironment;
88
use PHPUnit\Framework\TestCase;
9-
use Twig\Error\SyntaxError;
109
use Twig\Loader\FilesystemLoader;
1110

1211
/**
@@ -21,20 +20,8 @@ public function testTwigEnvironment(): void {
2120
$twig_loader = new FilesystemLoader(__DIR__);
2221
$twig = new TwigEnvironment($twig_loader);
2322
$expected = \file_get_contents(__DIR__ . '/_twig_environment_fixture.txt');
24-
\error_reporting(\error_reporting() & ~ \E_USER_WARNING);
2523
$result = $twig->render('twig-environment-template.twig');
2624
self::assertSame($expected, $result);
2725
}
2826

29-
/**
30-
* Test callback.
31-
*/
32-
public function testDeprecateTagTwigEnvironment(): void {
33-
$twig_loader = new FilesystemLoader(__DIR__);
34-
$twig = new TwigEnvironment($twig_loader);
35-
$this->expectException(SyntaxError::class);
36-
$this->expectExceptionMessage('An exception has been thrown during the compilation of a template ("The sort tag is deprecated in 3.6.0 and will be removed in 4.x, use the sort_namespaces twig filter.") in "twig-environment-template.twig".');
37-
$twig->render('twig-environment-template.twig');
38-
}
39-
4027
}

0 commit comments

Comments
 (0)