Skip to content

Commit 1a5ed00

Browse files
committed
Add two initial high level tests
1 parent d7a3a28 commit 1a5ed00

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

packages/framework/tests/Feature/FilesystemFacadeTest.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -449,6 +449,17 @@ public function testMethodWithMixedSequentialAndNamedArgumentsSkippingMiddleOne(
449449
rmdir(Hyde::path('foo'));
450450
}
451451

452+
public function testFindMimeTypeLookup()
453+
{
454+
$this->assertSame('text/plain', Filesystem::findMimeType('test.txt'));
455+
}
456+
457+
public function testFindMimeTypeWithKnownFile()
458+
{
459+
$this->file('test.txt', 'This is a test file.');
460+
$this->assertSame('text/plain', Filesystem::findMimeType('test.txt'));
461+
}
462+
452463
public function testFindMimeTypeWithUnknownExtension()
453464
{
454465
$this->file('text.unknown', 'text');

0 commit comments

Comments
 (0)