Skip to content

Commit 4a606f0

Browse files
committed
Add isType assertions to FileTest for video files
Extended the FileTest unit test to include assertions for the isType method, specifically verifying correct type detection for 'video', 'image', 'audio', and 'text'.
1 parent c75ac16 commit 4a606f0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/unit/Files/DTO/FileTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,10 @@ public function testMimeTypeMethods(): void
207207
$this->assertFalse($file->isImage());
208208
$this->assertFalse($file->isAudio());
209209
$this->assertFalse($file->isText());
210+
$this->assertTrue($file->isType('video'));
211+
$this->assertFalse($file->isType('image'));
212+
$this->assertFalse($file->isType('audio'));
213+
$this->assertFalse($file->isType('text'));
210214
}
211215

212216
/**

0 commit comments

Comments
 (0)