Skip to content
This repository was archived by the owner on Apr 29, 2019. It is now read-only.

Commit 828239a

Browse files
author
Joan He
authored
Merge pull request #1529 from magento-engcom/MAGETWO-89567
MAGETWO-89567: Cannot set 'user' save handler by ini_set()
2 parents eac97b3 + 4c37bee commit 828239a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

dev/tests/integration/testsuite/Magento/Framework/Session/SaveHandlerTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
namespace Magento\Framework\Session;
77

88
use Magento\Framework\App\DeploymentConfig;
9+
use Magento\Framework\Exception\SessionException;
10+
use Magento\Framework\Phrase;
911
use Magento\Framework\Session\Config\ConfigInterface;
1012
use Magento\Framework\App\ObjectManager;
1113

@@ -124,7 +126,7 @@ public function testConstructorWithException()
124126

125127
$this->saveHandlerFactoryMock->expects($this->at(0))
126128
->method('create')
127-
->willThrowException(new \LogicException());
129+
->willThrowException(new SessionException(new Phrase('Session Exception')));
128130
$this->saveHandlerFactoryMock->expects($this->at(1))
129131
->method('create')
130132
->with(SaveHandlerInterface::DEFAULT_HANDLER);

0 commit comments

Comments
 (0)