Fix variable name in last commit

This is what happens when you refactor in the github window.
Fix the variable names. This will get squashed once merged.
This commit is contained in:
Nick 2021-08-18 17:41:00 +12:00 committed by Guy Sartorelli
parent 0569a7bd06
commit ced6cccc13
No known key found for this signature in database
GPG Key ID: F313E3B9504D496A
1 changed files with 4 additions and 4 deletions

View File

@ -177,8 +177,8 @@ class FileFieldTest extends FunctionalTest
$fileField = new FileField('DemoField');
$this->assertEquals($defaultUploadSize, $fieldField->getValidator()->getAllowedMaxFileSize('jpg'));
$this->assertEquals($defaultUploadSize, $fieldField->getValidator()->getAllowedMaxFileSize('png'));
$this->assertEquals($defaultUploadSize, $fileField->getValidator()->getAllowedMaxFileSize('jpg'));
$this->assertEquals($defaultUploadSize, $fileField->getValidator()->getAllowedMaxFileSize('png'));
}
/**
@ -195,9 +195,9 @@ class FileFieldTest extends FunctionalTest
$fileField = new FileField('DemoField');
$this->assertEquals(File::ini2bytes($jpgSize), $fieldField->getValidator()->getAllowedMaxFileSize('jpg'));
$this->assertEquals(File::ini2bytes($jpgSize), $fileField->getValidator()->getAllowedMaxFileSize('jpg'));
// PNG is not explicitly defined in config, so would fall back to *
$this->assertEquals(File::ini2bytes($defaultSize), $fieldField->getValidator()->getAllowedMaxFileSize('png'));
$this->assertEquals(File::ini2bytes($defaultSize), $fileField->getValidator()->getAllowedMaxFileSize('png'));
}
}