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
InvalidTransitionExceptionTest.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\InvalidTransitionException;
11
use
Magento\Framework\Phrase
;
12
13
class
InvalidTransitionExceptionTest
extends
\PHPUnit\Framework\TestCase
14
{
18
public
function
testConstructor
()
19
{
20
$instanceClass = \Magento\Framework\Exception\State\InvalidTransitionException::class;
21
$message
=
'message %1 %2'
;
22
$params
= [
23
'parameter1'
,
24
'parameter2'
,
25
];
26
$cause = new \Exception();
27
$stateException =
new
InvalidTransitionException
(
new
Phrase
(
$message
,
$params
), $cause);
28
$this->assertInstanceOf($instanceClass, $stateException);
29
}
30
}
Magento\Framework\Exception\State\InvalidTransitionException
Definition:
InvalidTransitionException.php:16
Magento\Framework\Exception\Test\Unit\State
Definition:
ExpiredExceptionTest.php:8
Magento\Framework\Exception\Test\Unit\State\InvalidTransitionExceptionTest
Definition:
InvalidTransitionExceptionTest.php:13
$message
$message
Definition:
notifications.php:7
Magento\Framework\Phrase
Definition:
Phrase.php:17
Magento\Framework\Phrase
$params
$params[\Magento\Store\Model\StoreManager::PARAM_RUN_CODE]
Definition:
website.php:18
Magento\Framework\Exception\Test\Unit\State\InvalidTransitionExceptionTest\testConstructor
testConstructor()
Definition:
InvalidTransitionExceptionTest.php:18