Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
SizeTest.php
Go to the documentation of this file.
1 <?php
10 namespace Magento\Framework\File;
11 
12 class SizeTest extends \PHPUnit\Framework\TestCase
13 {
17  protected $_fileSize;
18 
19  protected function setUp()
20  {
22  ->get(\Magento\Framework\File\Size::class);
23  }
24 
28  public function testGetMaxFileSize()
29  {
30  $this->assertGreaterThanOrEqual(0, $this->_fileSize->getMaxFileSize());
31  $this->assertGreaterThanOrEqual(0, $this->_fileSize->getMaxFileSizeInMb());
32  }
33 }