Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
AuthenticationExceptionTest.php
Go to the documentation of this file.
1 <?php
8 
9 use \Magento\Framework\Exception\AuthenticationException;
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 }