Skip to content

Commit

Permalink
Reorder lines
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Jun 26, 2024
1 parent b207e9b commit 2d8a349
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/framework/tests/Feature/IncludesFacadeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -223,33 +223,33 @@ public function testIncludesUsageFromBladeView()
// Emulates the actual usage of the Includes facade from a Blade view.

$this->file('resources/includes/foo.blade.php', '<h1>{{ "Rendered Blade" }}</h1>');
$this->file('resources/includes/foo.md', '# Compiled Markdown');
$this->file('resources/includes/foo.html', '<h1>Literal HTML</h1>');
$this->file('resources/includes/foo.md', '# Compiled Markdown');

$view = <<<'BLADE'
// With extension
{!! Includes::html('foo.html') !!}
{!! Includes::blade('foo.blade.php') !!}
{!! Includes::markdown('foo.md') !!}
{!! Includes::html('foo.html') !!}
// Without extension
{!! Includes::html('foo') !!}
{!! Includes::blade('foo') !!}
{!! Includes::markdown('foo') !!}
{!! Includes::html('foo') !!}
BLADE;

$expected = <<<'HTML'
// With extension
<h1>Literal HTML</h1>
<h1>Rendered Blade</h1>
<h1>Compiled Markdown</h1>
<h1>Literal HTML</h1>
// Without extension
<h1>Literal HTML</h1>
<h1>Rendered Blade</h1>
<h1>Compiled Markdown</h1>

<h1>Literal HTML</h1>
HTML;

$this->assertSame($expected, Blade::render($view));
Expand Down

0 comments on commit 2d8a349

Please sign in to comment.