Skip to content

Commit 6631eb1

Browse files
committed
add test testPlainGuestIfStatementsAreCompiled
1 parent 653e05d commit 6631eb1

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

tests/View/ViewBladeCompilerTest.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -561,6 +561,19 @@ public function testPlainAuthIfStatementsAreCompiled()
561561
}
562562

563563

564+
public function testPlainGuestIfStatementsAreCompiled()
565+
{
566+
$string = '@guest
567+
breeze
568+
@endguest';
569+
$expected = '<?php if (\Auth::guest()): ?>
570+
breeze
571+
<?php endif; ?>';
572+
573+
$this->assertEquals($expected, $this->compiler->compileString($string));
574+
}
575+
576+
564577
protected function getFiles()
565578
{
566579
return m::mock('Illuminate\Filesystem\Filesystem');

0 commit comments

Comments
 (0)