Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
InvalidTransitionExceptionTest.php
Go to the documentation of this file.
1 <?php
9 
10 use \Magento\Framework\Exception\State\InvalidTransitionException;
12 
13 class InvalidTransitionExceptionTest extends \PHPUnit\Framework\TestCase
14 {
18  public function testConstructor()
19  {
20  $instanceClass = \Magento\Framework\Exception\State\InvalidTransitionException::class;
21  $message = 'message %1 %2';
22  $params = [
23  'parameter1',
24  'parameter2',
25  ];
26  $cause = new \Exception();
27  $stateException = new InvalidTransitionException(new Phrase($message, $params), $cause);
28  $this->assertInstanceOf($instanceClass, $stateException);
29  }
30 }
$message
$params[\Magento\Store\Model\StoreManager::PARAM_RUN_CODE]
Definition: website.php:18