diff --git a/packages/framework/tests/Feature/IncludesFacadeTest.php b/packages/framework/tests/Feature/IncludesFacadeTest.php index 8dd2594c9cb..66be0e393e3 100644 --- a/packages/framework/tests/Feature/IncludesFacadeTest.php +++ b/packages/framework/tests/Feature/IncludesFacadeTest.php @@ -8,6 +8,7 @@ use Hyde\Support\Includes; use Hyde\Hyde; use Hyde\Testing\TestCase; +use Illuminate\Support\Facades\Blade; /** * @covers \Hyde\Support\Includes @@ -216,4 +217,28 @@ public function testAdvancedBladePartialIsCompiledToHtml() $this->file('resources/includes/advanced.blade.php', $blade); $this->assertSame($expected, Includes::blade('advanced.blade.php')); } + + public function testIncludesUsageFromBladeView() + { + // Emulates the actual usage of the Includes facade from a Blade view. + + $this->file('resources/includes/foo.blade.php', '{{ "foo bar" }}'); + $this->file('resources/includes/foo.md', '# foo bar'); + $this->file('resources/includes/foo.html', '