Skip to content

Commit

Permalink
Changing test for upstream twig change
Browse files Browse the repository at this point in the history
  • Loading branch information
weaverryan committed Nov 1, 2023
1 parent d55d442 commit ac00d4f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
use Symfony\UX\TwigComponent\Tests\Fixtures\User;
use Twig\Environment;
use Twig\Error\RuntimeError;

/**
* @author Kevin Bond <[email protected]>
Expand Down Expand Up @@ -62,7 +63,7 @@ public function testCanRenderComponentWithMoreAdvancedTwigExpressions(): void

public function testCanNotRenderComponentWithInvalidExpressions(): void
{
$this->expectException(\TypeError::class);
$this->expectException(RuntimeError::class);
self::getContainer()->get(Environment::class)->render('invalid_flexible_component.html.twig');
}

Expand Down

0 comments on commit ac00d4f

Please sign in to comment.