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
framework
App
Test
Unit
Request
HttpMethodMapTest.php
Go to the documentation of this file.
1
<?php
7
declare(strict_types=1);
8
9
namespace
Magento\Framework\App\Test\Unit\Request
;
10
11
use
Magento\Framework\App\Request\HttpMethodMap
;
12
use PHPUnit\Framework\TestCase;
13
14
class
HttpMethodMapTest
extends
TestCase
15
{
19
public
function
testFilter
()
20
{
21
$map
=
new
HttpMethodMap
(
22
[
'method1'
=>
'\\Throwable'
,
'method2'
=>
'DateTime'
]
23
);
24
$this->assertEquals(
25
[
'method1'
=> \Throwable::class,
'method2'
=> \DateTime::class],
26
$map
->getMap()
27
);
28
}
29
35
public
function
testExisting
()
36
{
37
new
HttpMethodMap
([
'method1'
=>
'NonExistingClass'
]);
38
}
39
45
public
function
testMethod
()
46
{
47
new
HttpMethodMap
([\Throwable::class]);
48
}
49
}
$map
$map
Definition:
classmap_generator.php:167
Magento\Framework\App\Test\Unit\Request\HttpMethodMapTest\testFilter
testFilter()
Definition:
HttpMethodMapTest.php:19
Magento\Framework\App\Test\Unit\Request
Definition:
HttpMethodMapTest.php:9
Magento\Framework\App\Test\Unit\Request\HttpMethodMapTest
Definition:
HttpMethodMapTest.php:14
Magento\Framework\App\Test\Unit\Request\HttpMethodMapTest\testMethod
testMethod()
Definition:
HttpMethodMapTest.php:45
Magento\Framework\App\Request\HttpMethodMap
Definition:
HttpMethodMap.php:14
Magento\Framework\App\Test\Unit\Request\HttpMethodMapTest\testExisting
testExisting()
Definition:
HttpMethodMapTest.php:35