EmailNotConfirmedExceptionTest.php 773 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Framework\Exception\Test\Unit;
  7. use \Magento\Framework\Exception\EmailNotConfirmedException;
  8. use Magento\Framework\Phrase;
  9. /**
  10. * Class EmailNotConfirmedExceptionTest
  11. */
  12. class EmailNotConfirmedExceptionTest extends \PHPUnit\Framework\TestCase
  13. {
  14. /**
  15. * @return void
  16. */
  17. public function testConstructor()
  18. {
  19. $emailNotConfirmedException = new EmailNotConfirmedException(
  20. new Phrase(
  21. 'Email not confirmed',
  22. ['consumer_id' => 1, 'resources' => 'record2']
  23. )
  24. );
  25. $this->assertSame('Email not confirmed', $emailNotConfirmedException->getMessage());
  26. }
  27. }