From 7c8eb3b4d47274a0cc6eee58933891f8bfa3f977 Mon Sep 17 00:00:00 2001 From: Martin Eiber Date: Tue, 7 Jan 2025 14:56:54 +0100 Subject: [PATCH] Add mimeType to asset grid. --- src/Grid/Mapper/ColumnMapper.php | 1 + tests/Unit/Grid/Service/SystemColumnServiceTest.php | 1 + 2 files changed, 2 insertions(+) diff --git a/src/Grid/Mapper/ColumnMapper.php b/src/Grid/Mapper/ColumnMapper.php index 54051277..462fead9 100644 --- a/src/Grid/Mapper/ColumnMapper.php +++ b/src/Grid/Mapper/ColumnMapper.php @@ -38,6 +38,7 @@ 'published' => 'boolean', 'classname' => 'string', 'index' => 'integer', + 'mimetype' => 'string', ]; public function getType(string $column): string diff --git a/tests/Unit/Grid/Service/SystemColumnServiceTest.php b/tests/Unit/Grid/Service/SystemColumnServiceTest.php index 86e93439..c4a745fc 100644 --- a/tests/Unit/Grid/Service/SystemColumnServiceTest.php +++ b/tests/Unit/Grid/Service/SystemColumnServiceTest.php @@ -39,6 +39,7 @@ public function testGetSystemColumnsForAssets(): void 'creationDate' => 'datetime', 'modificationDate' => 'datetime', 'size' => 'fileSize', + 'mimetype' => 'string', ], $systemColumnService->getSystemColumnsForAssets()); }