Skip to content

Commit 09b75cf

Browse files
committed
Use a real .zip file in the test as that's the file type the class is using the most often
The PHP source code started to be detected as application/javascript on PHP 8.4 either because bundled libmagic has been updated, or because the setup-php action uses its own or something.
1 parent aa81698 commit 09b75cf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/tests/Training/Files/TrainingFilesDownloadTest.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ class TrainingFilesDownloadTest extends TestCase
113113
$sessionSection = $this->session->getSection('training');
114114
$sessionSection->set('applicationId', self::APPLICATION_ID);
115115
$sessionSection->set('token', self::TOKEN);
116-
$filename = basename(__FILE__);
116+
$filename = 'file.zip';
117117
$filesDir = __DIR__ . '/';
118118
$this->database->setFetchResult([
119119
'added' => new DateTime(),
@@ -125,7 +125,7 @@ class TrainingFilesDownloadTest extends TestCase
125125
$response = $this->trainingFilesDownload->getFileResponse('foo');
126126
Assert::same($filesDir . $filename, $response->getFile());
127127
Assert::same($filename, $response->getName());
128-
Assert::same('text/x-php', $response->getContentType());
128+
Assert::same('application/zip', $response->getContentType());
129129
}
130130

131131

app/tests/Training/Files/file.zip

22 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)