Skip to content

Commit 964cd65

Browse files
committed
Appease coverage
1 parent 820f134 commit 964cd65

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/Models/FileModel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public static function storage(): string
6868
$thumbnails = $storage . 'thumbnails';
6969
if (! is_dir($thumbnails) && ! @mkdir($thumbnails, 0775, true))
7070
{
71-
throw FilesException::forDirFail($thumbnails);
71+
throw FilesException::forDirFail($thumbnails); // @codeCoverageIgnore
7272
}
7373

7474
return $storage;

tests/unit/ControllerTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@ public function testGetSortUsesSettings()
8080

8181
public function testGetSortIgnoresInvalid()
8282
{
83-
$_REQUEST['sort'] = 'foobar';
83+
$_REQUEST['sort'] = 'foobar';
84+
service('settings')->filesSort = 'bambaz';
8485

8586
$this->controller(Files::class);
8687

0 commit comments

Comments
 (0)