Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
magento2-base
dev
tests
integration
testsuite
Magento
Framework
File
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
{
21
$this->_fileSize =
\Magento\TestFramework\Helper\Bootstrap::getObjectManager
()
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
}
Magento\Framework\File\SizeTest
Definition:
SizeTest.php:12
Magento\Framework\File\SizeTest\setUp
setUp()
Definition:
SizeTest.php:19
Magento\Framework\Filesystem\Driver\File
Definition:
File.php:20
Magento\Framework\File\SizeTest\testGetMaxFileSize
testGetMaxFileSize()
Definition:
SizeTest.php:28
Magento
Magento\Framework\File
Definition:
Csv.php:7
Magento\Framework\File\SizeTest\$_fileSize
$_fileSize
Definition:
SizeTest.php:17
Magento\TestFramework\Helper\Bootstrap\getObjectManager
static getObjectManager()
Definition:
Bootstrap.php:125