We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
testPlainGuestIfStatementsAreCompiled
1 parent 653e05d commit 6631eb1Copy full SHA for 6631eb1
1 file changed
tests/View/ViewBladeCompilerTest.php
@@ -561,6 +561,19 @@ public function testPlainAuthIfStatementsAreCompiled()
561
}
562
563
564
+ public function testPlainGuestIfStatementsAreCompiled()
565
+ {
566
+ $string = '@guest
567
+breeze
568
+@endguest';
569
+ $expected = '<?php if (\Auth::guest()): ?>
570
571
+<?php endif; ?>';
572
+
573
+ $this->assertEquals($expected, $this->compiler->compileString($string));
574
+ }
575
576
577
protected function getFiles()
578
{
579
return m::mock('Illuminate\Filesystem\Filesystem');
0 commit comments