Skip to content

Commit cee4c78

Browse files
authored
Merge pull request #736 from lusitdev/fix-resolve_path-fails-on-windows
Fix: Test failing on Windows due to missing path normalization: resolve_path_does_not_strip_0s
2 parents 84bf691 + e0af69f commit cee4c78

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/HelpersTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ public function url_helper_returns_absolute_url()
4242
public function resolve_path_does_not_strip_0s()
4343
{
4444
$path = 'path/to/assets/0/0/0.png';
45+
$normalizedOutput = str_replace('\\', '/', resolvePath($path));
4546

46-
$this->assertSame($path, resolvePath($path));
47+
$this->assertSame($path, $normalizedOutput);
4748
}
4849
}

0 commit comments

Comments
 (0)