Skip to content

Commit

Permalink
FIX Stop using deprecated API
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli committed Jan 6, 2025
1 parent 7a85b7e commit 4377ff4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/MimeUploadValidatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public function testInvalidFileExtensionValidatingMimeType()
{
// setup plaintext file with invalid extension
$tmpFileName = 'UploadTest-testUpload.jpg';
$tmpFilePath = TEMP_FOLDER . '/' . $tmpFileName;
$tmpFilePath = TEMP_PATH . '/' . $tmpFileName;
$tmpFileContent = '';

for ($i = 0; $i < 10000; $i++) {
Expand Down Expand Up @@ -49,7 +49,7 @@ public function testGetExpectedMimeTypes()
{
// Setup a file with a capitalised extension and try to match it against a lowercase file.
$tmpFileName = 'text.TXT';
$tmpFilePath = TEMP_FOLDER . '/' . $tmpFileName;
$tmpFilePath = TEMP_PATH . '/' . $tmpFileName;
$tmpFileContent = '';

for ($i = 0; $i < 10000; $i++) {
Expand Down

0 comments on commit 4377ff4

Please sign in to comment.