Exemple #1
0
 /**
  * Get css upload max size
  *
  * @return int
  */
 public function getCssUploadMaxSize()
 {
     $maxCssUploadSize = $this->_fileSize->convertSizeToInteger((string) Mage::getConfig()->getNode(self::XML_PATH_CSS_UPLOAD_LIMIT));
     $maxIniUploadSize = $this->_fileSize->getMaxFileSize();
     return min($maxCssUploadSize, $maxIniUploadSize);
 }
Exemple #2
0
 /**
  * @covers Mage_Core_Helper_File_Storage::getMaxFileSize
  * @backupStaticAttributes
  */
 public function testGetMaxFileSize()
 {
     $this->assertGreaterThanOrEqual(0, $this->_fileSize->getMaxFileSize());
     $this->assertGreaterThanOrEqual(0, $this->_fileSize->getMaxFileSizeInMb());
 }