Skip to content

Commit a796602

Browse files
committed
fixing test
1 parent 14a557a commit a796602

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/StimulusBundle/tests/AssetMapper/StimulusLoaderJavaScriptCompilerTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,11 @@ public function testCompileDynamicallyAddsContents()
5353

5454
$compiledContents = $compiler->compile($startingContents, $loaderAsset, $this->createMock(AssetMapperInterface::class));
5555
$this->assertStringContainsString(
56-
"import controller_0 from '../../controllers/foo-controller.js';",
56+
'import controller_0 from "../../controllers/foo-controller.js";',
5757
$compiledContents,
5858
);
5959
$this->assertStringContainsString(
60-
"import controller_1 from '../../in-root_controller.js';",
60+
'import controller_1 from "../../in-root_controller.js";',
6161
$compiledContents,
6262
);
6363
$this->assertStringContainsString(
@@ -107,7 +107,7 @@ public function testDebugModeIsSetCorrectly()
107107

108108
private function createAsset(string $publicPath): MappedAsset
109109
{
110-
$asset = new MappedAsset(basename($publicPath), publicPathWithoutDigest: $publicPath);
110+
$asset = new MappedAsset(basename($publicPath), '/path/to/project/'.$publicPath, publicPathWithoutDigest: $publicPath);
111111

112112
return $asset;
113113
}

0 commit comments

Comments
 (0)