Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
EmailNotConfirmedExceptionTest.php
Go to the documentation of this file.
1 <?php
8 
9 use \Magento\Framework\Exception\EmailNotConfirmedException;
11 
15 class EmailNotConfirmedExceptionTest extends \PHPUnit\Framework\TestCase
16 {
20  public function testConstructor()
21  {
22  $emailNotConfirmedException = new EmailNotConfirmedException(
23  new Phrase(
24  'Email not confirmed',
25  ['consumer_id' => 1, 'resources' => 'record2']
26  )
27  );
28  $this->assertSame('Email not confirmed', $emailNotConfirmedException->getMessage());
29  }
30 }