forked from symfony/ux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changing test for upstream twig change
- Loading branch information
1 parent
d55d442
commit ac00d4f
Showing
1 changed file
with
2 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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]> | ||
|
@@ -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'); | ||
} | ||
|
||
|