Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7094692

Browse files
committed
Fix test
1 parent 21f3389 commit 7094692

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/Symfony/Bundle/WebProfilerBundle/Tests/Twig/WebProfilerExtensionTest.php

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
use Twig\Environment;
1818
use Twig\Extension\CoreExtension;
1919
use Twig\Extension\EscaperExtension;
20-
use Twig\Loader\LoaderInterface;
2120

2221
class WebProfilerExtensionTest extends TestCase
2322
{
@@ -55,13 +54,7 @@ private function mockTwigEnvironment()
5554
{
5655
$twigEnvironment = $this->createMock(Environment::class);
5756

58-
$loader = $this->createMock(LoaderInterface::class);
59-
$loader
60-
->expects($this->any())
61-
->method('exists')
62-
->willReturn(true);
63-
64-
$twigEnvironment->expects($this->any())->method('getLoader')->willReturn($loader);
57+
$twigEnvironment->expects($this->any())->method('getCharset')->willReturn('UTF-8');
6558

6659
return $twigEnvironment;
6760
}

0 commit comments

Comments
 (0)