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
AuthenticationExceptionTest.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Framework\Exception\Test\Unit
;
8
9
use \Magento\Framework\Exception\AuthenticationException;
10
use
Magento\Framework\Phrase
;
11
15
class
AuthenticationExceptionTest
extends
\PHPUnit\Framework\TestCase
16
{
20
public
function
testConstructor
()
21
{
22
$authenticationException =
new
AuthenticationException
(
23
new
Phrase
(
24
'An authentication error occurred. Verify and try again.'
,
25
[
'consumer_id'
=> 1,
'resources'
=>
'record2'
]
26
)
27
);
28
$this->assertSame(
29
'An authentication error occurred. Verify and try again.'
,
30
$authenticationException->getMessage()
31
);
32
}
33
}
Magento\Framework\Exception\Test\Unit
Definition:
AuthenticationExceptionTest.php:7
Magento\Framework\Exception\Test\Unit\AuthenticationExceptionTest
Definition:
AuthenticationExceptionTest.php:15
Magento\Framework\Exception\Test\Unit\AuthenticationExceptionTest\testConstructor
testConstructor()
Definition:
AuthenticationExceptionTest.php:20
Magento\Framework\Exception\AuthenticationException
Definition:
AuthenticationException.php:14
Magento\Framework\Phrase
Definition:
Phrase.php:17
Magento\Framework\Phrase