We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b20eab6 commit 0907bc5Copy full SHA for 0907bc5
packages/framework/tests/Unit/Support/MediaFileTest.php
@@ -86,6 +86,16 @@ public function testAbsolutePathIsNormalizedToRelative()
86
$this->assertSame('foo', MediaFile::make(Hyde::path('foo'))->path);
87
}
88
89
+ public function testMediaPathIsNormalizedToRelative()
90
+ {
91
+ $this->assertSame('foo', MediaFile::make('_media/foo')->path);
92
+ }
93
+
94
+ public function testAbsoluteMediaPathIsNormalizedToRelative()
95
96
+ $this->assertSame('foo', MediaFile::make(Hyde::path('_media/foo'))->path);
97
98
99
public function testGetNameReturnsNameOfFile()
100
{
101
$this->assertSame('foo.txt', MediaFile::make('foo.txt')->getName());
0 commit comments