[CORE] Fix path configuration

This commit is contained in:
2021-08-19 01:45:11 +01:00
parent 8c5486ba13
commit 61d558b371
7 changed files with 8 additions and 13 deletions

View File

@@ -35,7 +35,7 @@ class AttachmentThumbnailTest extends GNUsocialTestCase
{
parent::bootKernel();
// Data fixture already loaded this file, but we need to get it's hash to find it
// Data fixture already loaded this file, but we need to get its hash to find it
$file = new \SplFileInfo(INSTALLDIR . '/tests/sample-uploads/attachment-lifecycle-target.jpg');
Event::handle('HashFile', [$file->getPathname(), &$hash]);
$attachment = DB::findOneBy('attachment', ['filehash' => $hash]);
@@ -61,7 +61,7 @@ class AttachmentThumbnailTest extends GNUsocialTestCase
$attachment->deleteStorage();
// This was deleted earlier, an the backed storage as well, so we can't generate another thumbnail
// This was deleted earlier, and the backed storage as well, so we can't generate another thumbnail
static::assertThrows(NotStoredLocallyException::class, fn () => AttachmentThumbnail::getOrCreate($attachment, width: 4, height: 4, crop: false));
$attachment->kill();