Tests: Use different jpg file

This commit is contained in:
Aleksander Machniak
2025-10-05 11:47:16 +02:00
parent 6bd2484fe6
commit 41bffe1581
2 changed files with 1 additions and 1 deletions

View File

@@ -406,7 +406,7 @@ class MimeTest extends TestCase
$this->assertSame('application/pdf', \rcube_mime::file_content_type($file, '', 'application/octet-stream', false, true));
// Test jpg file
$file = INSTALL_PATH . 'program/resources/blank.jpg';
$file = TESTS_DIR . 'src/logo.jpg';
$content = file_get_contents($file);
$this->assertSame('image/jpeg', \rcube_mime::file_content_type($content, '', 'application/octet-stream', true, true));
$this->assertSame('image/jpeg', \rcube_mime::file_content_type($file, '', 'application/octet-stream', false, true));

BIN
tests/src/logo.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB