Your IP : 216.73.217.95


Current Path : /home/rtorresani/www/vendor/magento/framework/Exception/Test/Unit/
Upload File :
Current File : //home/rtorresani/www/vendor/magento/framework/Exception/Test/Unit/AuthenticationExceptionTest.php

<?php
/**
 * Copyright © Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */
declare(strict_types=1);

namespace Magento\Framework\Exception\Test\Unit;

use Magento\Framework\Exception\AuthenticationException;
use Magento\Framework\Phrase;
use PHPUnit\Framework\TestCase;

class AuthenticationExceptionTest extends TestCase
{
    /**
     * @return void
     */
    public function testConstructor()
    {
        $authenticationException = new AuthenticationException(
            new Phrase(
                'An authentication error occurred. Verify and try again.',
                ['consumer_id' => 1, 'resources' => 'record2']
            )
        );
        $this->assertSame(
            'An authentication error occurred. Verify and try again.',
            $authenticationException->getMessage()
        );
    }
}