Skip to content

Commit b6cb872

Browse files
authored
[10.x] Use HtmlString in Vite fake (#49163)
* use htmlstring * test
1 parent 1e03a4a commit b6cb872

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Illuminate/Foundation/Testing/Concerns/InteractsWithContainer.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ protected function withoutVite()
117117
{
118118
public function __invoke($entrypoints, $buildDirectory = null)
119119
{
120-
return '';
120+
return new HtmlString('');
121121
}
122122

123123
public function __call($method, $parameters)

tests/Foundation/Testing/Concerns/InteractsWithContainerTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public function testWithoutViteBindsEmptyHandlerAndReturnsInstance()
1313
{
1414
$instance = $this->withoutVite();
1515

16-
$this->assertSame('', app(Vite::class)(['resources/js/app.js']));
16+
$this->assertSame('', app(Vite::class)(['resources/js/app.js'])->toHtml());
1717
$this->assertSame($this, $instance);
1818
}
1919

0 commit comments

Comments
 (0)