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
Exception
Test
Unit
State
ExpiredExceptionTest.php
Go to the documentation of this file.
1
<?php
8
namespace
Magento\Framework\Exception\Test\Unit\State
;
9
10
use \Magento\Framework\Exception\State\ExpiredException;
11
use
Magento\Framework\Phrase
;
12
16
class
ExpiredExceptionTest
extends
\PHPUnit\Framework\TestCase
17
{
21
public
function
testConstructor
()
22
{
23
$instanceClass = \Magento\Framework\Exception\State\ExpiredException::class;
24
$message
=
'message %1 %2'
;
25
$params
= [
26
'parameter1'
,
27
'parameter2'
,
28
];
29
$cause = new \Exception();
30
$stateException =
new
ExpiredException
(
new
Phrase
(
$message
,
$params
), $cause);
31
$this->assertInstanceOf($instanceClass, $stateException);
32
}
33
}
Magento\Framework\Exception\Test\Unit\State
Definition:
ExpiredExceptionTest.php:8
$message
$message
Definition:
notifications.php:7
Magento\Framework\Exception\State\ExpiredException
Definition:
ExpiredException.php:16
Magento\Framework\Exception\Test\Unit\State\ExpiredExceptionTest
Definition:
ExpiredExceptionTest.php:16
Magento\Framework\Phrase
Definition:
Phrase.php:17
Magento\Framework\Phrase
Magento\Framework\Exception\Test\Unit\State\ExpiredExceptionTest\testConstructor
testConstructor()
Definition:
ExpiredExceptionTest.php:21
$params
$params[\Magento\Store\Model\StoreManager::PARAM_RUN_CODE]
Definition:
website.php:18