Skip to content

Commit b47fb9a

Browse files
author
Igor Melnikov
committed
Merge remote-tracking branch 'origin/MAGETWO-52923-Varnish-ssl' into pr
2 parents 8498a20 + 57aada3 commit b47fb9a

File tree

1 file changed

+6
-6
lines changed
  • lib/internal/Magento/Framework/App/Test/Unit/Request

1 file changed

+6
-6
lines changed

lib/internal/Magento/Framework/App/Test/Unit/Request/HttpTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ public function tearDown()
7979
*/
8080
private function getModel($uri = null, $mockAppConfig = true)
8181
{
82-
$testFrameworkObjectManager = new \Magento\Framework\TestFramework\Unit\Helper\ObjectManager ($this);
83-
$model = $testFrameworkObjectManager->getObject(
82+
83+
$model = $this->objectManager->getObject(
8484
'Magento\Framework\App\Request\Http',
8585
[
8686
'routeConfig' => $this->_routerListMock,
@@ -93,7 +93,7 @@ private function getModel($uri = null, $mockAppConfig = true)
9393

9494
if($mockAppConfig){
9595
$MockAppConfig = $this->getMock(\Magento\Framework\App\Config::class, [], [], '' , false);
96-
$testFrameworkObjectManager->setBackwardCompatibleProperty($model, 'appConfig', $MockAppConfig );
96+
$this->objectManager->setBackwardCompatibleProperty($model, 'appConfig', $MockAppConfig );
9797
}
9898

9999
return $model;
@@ -346,9 +346,9 @@ public function testIsSecure($isSecure, $serverHttps, $headerOffloadKey, $header
346346
->method('getValue')
347347
->with(\Magento\Framework\App\Request\Http::XML_PATH_OFFLOADER_HEADER, ScopeConfigInterface::SCOPE_TYPE_DEFAULT)
348348
->willReturn($configOffloadHeader);
349-
$testFrameworkObjectManager = new \Magento\Framework\TestFramework\Unit\Helper\ObjectManager ($this);
350-
$testFrameworkObjectManager->setBackwardCompatibleProperty($this->_model,"appConfig" ,$configMock);
351-
$testFrameworkObjectManager->setBackwardCompatibleProperty($this->_model,"SSLOffloadHeader" ,null );
349+
350+
$this->objectManager->setBackwardCompatibleProperty($this->_model,'appConfig' ,$configMock);
351+
$this->objectManager->setBackwardCompatibleProperty($this->_model, 'SSLOffloadHeader' ,null );
352352

353353
$this->_model->getServer()->set($headerOffloadKey, $headerOffloadValue);
354354
$this->_model->getServer()->set('HTTPS', $serverHttps);

0 commit comments

Comments
 (0)