Skip to content

Commit a913def

Browse files
author
Joan He
committed
Merge remote-tracking branch 'origin/MAGETWO-31499-core-emulation' into develop
2 parents 2410622 + aafcad7 commit a913def

File tree

15 files changed

+34
-32
lines changed

15 files changed

+34
-32
lines changed

app/code/Magento/Email/Model/AbstractTemplate.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ abstract class AbstractTemplate extends AbstractModel implements TemplateTypesIn
5656
protected $_design = null;
5757

5858
/**
59-
* @var \Magento\Core\Model\App\Emulation
59+
* @var \Magento\Store\Model\App\Emulation
6060
*/
6161
protected $_appEmulation;
6262

@@ -69,15 +69,15 @@ abstract class AbstractTemplate extends AbstractModel implements TemplateTypesIn
6969
* @param \Magento\Framework\Model\Context $context
7070
* @param \Magento\Framework\View\DesignInterface $design
7171
* @param \Magento\Framework\Registry $registry
72-
* @param \Magento\Core\Model\App\Emulation $appEmulation
72+
* @param \Magento\Store\Model\App\Emulation $appEmulation
7373
* @param \Magento\Store\Model\StoreManagerInterface $storeManager
7474
* @param array $data
7575
*/
7676
public function __construct(
7777
\Magento\Framework\Model\Context $context,
7878
\Magento\Framework\View\DesignInterface $design,
7979
\Magento\Framework\Registry $registry,
80-
\Magento\Core\Model\App\Emulation $appEmulation,
80+
\Magento\Store\Model\App\Emulation $appEmulation,
8181
\Magento\Store\Model\StoreManagerInterface $storeManager,
8282
array $data = []
8383
) {

app/code/Magento/Email/Model/BackendTemplate.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class BackendTemplate extends Template
2121
* @param \Magento\Framework\Model\Context $context
2222
* @param \Magento\Framework\View\DesignInterface $design
2323
* @param \Magento\Framework\Registry $registry
24-
* @param \Magento\Core\Model\App\Emulation $appEmulation
24+
* @param \Magento\Store\Model\App\Emulation $appEmulation
2525
* @param \Magento\Store\Model\StoreManagerInterface $storeManager
2626
* @param \Magento\Framework\Filesystem $filesystem
2727
* @param \Magento\Framework\View\Asset\Repository $assetRepo
@@ -38,7 +38,7 @@ public function __construct(
3838
\Magento\Framework\Model\Context $context,
3939
\Magento\Framework\View\DesignInterface $design,
4040
\Magento\Framework\Registry $registry,
41-
\Magento\Core\Model\App\Emulation $appEmulation,
41+
\Magento\Store\Model\App\Emulation $appEmulation,
4242
\Magento\Store\Model\StoreManagerInterface $storeManager,
4343
\Magento\Framework\Filesystem $filesystem,
4444
\Magento\Framework\View\Asset\Repository $assetRepo,

app/code/Magento/Email/Model/Template.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ class Template extends \Magento\Email\Model\AbstractTemplate implements \Magento
157157
* @param \Magento\Framework\Model\Context $context
158158
* @param \Magento\Framework\View\DesignInterface $design
159159
* @param \Magento\Framework\Registry $registry
160-
* @param \Magento\Core\Model\App\Emulation $appEmulation
160+
* @param \Magento\Store\Model\App\Emulation $appEmulation
161161
* @param \Magento\Store\Model\StoreManagerInterface $storeManager
162162
* @param \Magento\Framework\Filesystem $filesystem
163163
* @param \Magento\Framework\View\Asset\Repository $assetRepo
@@ -173,7 +173,7 @@ public function __construct(
173173
\Magento\Framework\Model\Context $context,
174174
\Magento\Framework\View\DesignInterface $design,
175175
\Magento\Framework\Registry $registry,
176-
\Magento\Core\Model\App\Emulation $appEmulation,
176+
\Magento\Store\Model\App\Emulation $appEmulation,
177177
StoreManagerInterface $storeManager,
178178
\Magento\Framework\Filesystem $filesystem,
179179
\Magento\Framework\View\Asset\Repository $assetRepo,

app/code/Magento/Newsletter/Model/Queue.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ class Queue extends \Magento\Email\Model\AbstractTemplate
114114
* @param \Magento\Framework\Model\Context $context
115115
* @param \Magento\Framework\View\DesignInterface $design
116116
* @param \Magento\Framework\Registry $registry
117-
* @param \Magento\Core\Model\App\Emulation $appEmulation
117+
* @param \Magento\Store\Model\App\Emulation $appEmulation
118118
* @param \Magento\Store\Model\StoreManagerInterface $storeManager
119119
* @param \Magento\Newsletter\Model\Template\Filter $templateFilter
120120
* @param \Magento\Framework\Stdlib\DateTime\TimezoneInterface $localeDate
@@ -129,7 +129,7 @@ public function __construct(
129129
\Magento\Framework\Model\Context $context,
130130
\Magento\Framework\View\DesignInterface $design,
131131
\Magento\Framework\Registry $registry,
132-
\Magento\Core\Model\App\Emulation $appEmulation,
132+
\Magento\Store\Model\App\Emulation $appEmulation,
133133
\Magento\Store\Model\StoreManagerInterface $storeManager,
134134
\Magento\Newsletter\Model\Template\Filter $templateFilter,
135135
\Magento\Framework\Stdlib\DateTime\TimezoneInterface $localeDate,

app/code/Magento/Newsletter/Model/Template.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ class Template extends \Magento\Email\Model\AbstractTemplate
9393
* @param \Magento\Framework\Model\Context $context
9494
* @param \Magento\Framework\View\DesignInterface $design
9595
* @param \Magento\Framework\Registry $registry
96-
* @param \Magento\Core\Model\App\Emulation $appEmulation
96+
* @param \Magento\Store\Model\App\Emulation $appEmulation
9797
* @param \Magento\Store\Model\StoreManagerInterface $storeManager
9898
* @param \Magento\Framework\App\RequestInterface $request
9999
* @param \Magento\Newsletter\Model\Template\Filter $filter
@@ -106,7 +106,7 @@ public function __construct(
106106
\Magento\Framework\Model\Context $context,
107107
\Magento\Framework\View\DesignInterface $design,
108108
\Magento\Framework\Registry $registry,
109-
\Magento\Core\Model\App\Emulation $appEmulation,
109+
\Magento\Store\Model\App\Emulation $appEmulation,
110110
\Magento\Store\Model\StoreManagerInterface $storeManager,
111111
\Magento\Framework\App\RequestInterface $request,
112112
\Magento\Newsletter\Model\Template\Filter $filter,

app/code/Magento/Payment/Helper/Data.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class Data extends \Magento\Framework\App\Helper\AbstractHelper
5252
/**
5353
* App emulation model
5454
*
55-
* @var \Magento\Core\Model\App\Emulation
55+
* @var \Magento\Store\Model\App\Emulation
5656
*/
5757
protected $_appEmulation;
5858

@@ -68,7 +68,7 @@ class Data extends \Magento\Framework\App\Helper\AbstractHelper
6868
* @param \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig
6969
* @param LayoutFactory $layoutFactory
7070
* @param \Magento\Payment\Model\Method\Factory $paymentMethodFactory
71-
* @param \Magento\Core\Model\App\Emulation $appEmulation
71+
* @param \Magento\Store\Model\App\Emulation $appEmulation
7272
* @param \Magento\Payment\Model\Config $paymentConfig
7373
* @param \Magento\Framework\App\Config\Initial $initialConfig
7474
*/
@@ -77,7 +77,7 @@ public function __construct(
7777
\Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig,
7878
LayoutFactory $layoutFactory,
7979
\Magento\Payment\Model\Method\Factory $paymentMethodFactory,
80-
\Magento\Core\Model\App\Emulation $appEmulation,
80+
\Magento\Store\Model\App\Emulation $appEmulation,
8181
\Magento\Payment\Model\Config $paymentConfig,
8282
\Magento\Framework\App\Config\Initial $initialConfig
8383
) {

app/code/Magento/ProductAlert/Model/Email.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ class Email extends \Magento\Framework\Model\AbstractModel
9292
protected $customerRepository;
9393

9494
/**
95-
* @var \Magento\Core\Model\App\Emulation
95+
* @var \Magento\Store\Model\App\Emulation
9696
*/
9797
protected $_appEmulation;
9898

@@ -114,7 +114,7 @@ class Email extends \Magento\Framework\Model\AbstractModel
114114
* @param \Magento\Store\Model\StoreManagerInterface $storeManager
115115
* @param \Magento\Customer\Api\CustomerRepositoryInterface $customerRepository
116116
* @param \Magento\Customer\Helper\View $customerHelper
117-
* @param \Magento\Core\Model\App\Emulation $appEmulation
117+
* @param \Magento\Store\Model\App\Emulation $appEmulation
118118
* @param \Magento\Framework\Mail\Template\TransportBuilder $transportBuilder
119119
* @param \Magento\Framework\Model\Resource\AbstractResource $resource
120120
* @param \Magento\Framework\Data\Collection\Db $resourceCollection
@@ -128,7 +128,7 @@ public function __construct(
128128
\Magento\Store\Model\StoreManagerInterface $storeManager,
129129
\Magento\Customer\Api\CustomerRepositoryInterface $customerRepository,
130130
\Magento\Customer\Helper\View $customerHelper,
131-
\Magento\Core\Model\App\Emulation $appEmulation,
131+
\Magento\Store\Model\App\Emulation $appEmulation,
132132
\Magento\Framework\Mail\Template\TransportBuilder $transportBuilder,
133133
\Magento\Framework\Model\Resource\AbstractResource $resource = null,
134134
\Magento\Framework\Data\Collection\Db $resourceCollection = null,

app/code/Magento/Core/Model/App/Emulation.php renamed to app/code/Magento/Store/Model/App/Emulation.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@
99
*
1010
* @author Magento Core Team <core@magentocommerce.com>
1111
*/
12-
namespace Magento\Core\Model\App;
12+
namespace Magento\Store\Model\App;
1313

14+
use Magento\Framework\Object;
1415
use Magento\Framework\Translate\Inline\ConfigInterface;
1516

1617
class Emulation extends \Magento\Framework\Object
@@ -145,7 +146,7 @@ public function startEnvironmentEmulation(
145146
*
146147
* Function restores initial store environment
147148
*
148-
* @return \Magento\Core\Model\App\Emulation
149+
* @return \Magento\Store\Model\App\Emulation
149150
*/
150151
public function stopEnvironmentEmulation()
151152
{

dev/tests/integration/testsuite/Magento/Email/Model/TemplateTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ protected function setUp()
3434
$objectManager->get('Magento\Framework\Model\Context'),
3535
$objectManager->get('Magento\Framework\View\DesignInterface'),
3636
$objectManager->get('Magento\Framework\Registry'),
37-
$objectManager->get('Magento\Core\Model\App\Emulation'),
37+
$objectManager->get('Magento\Store\Model\App\Emulation'),
3838
$objectManager->get('Magento\Store\Model\StoreManager'),
3939
$objectManager->create('Magento\Framework\Filesystem'),
4040
$objectManager->create('Magento\Framework\View\Asset\Repository'),

dev/tests/integration/testsuite/Magento/Core/Model/App/EmulationTest.php renamed to dev/tests/integration/testsuite/Magento/Store/Model/App/EmulationTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,23 @@
33
* Copyright © 2015 Magento. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6-
namespace Magento\Core\Model\App;
6+
namespace Magento\Store\Model\App;
77

88
class EmulationTest extends \PHPUnit_Framework_TestCase
99
{
1010
/**
11-
* @var \Magento\Core\Model\App\Emulation
11+
* @var \Magento\Store\Model\App\Emulation
1212
*/
1313
protected $_model;
1414

1515
/**
16-
* @covers \Magento\Core\Model\App\Emulation::startEnvironmentEmulation
17-
* @covers \Magento\Core\Model\App\Emulation::stopEnvironmentEmulation
16+
* @covers \Magento\Store\Model\App\Emulation::startEnvironmentEmulation
17+
* @covers \Magento\Store\Model\App\Emulation::stopEnvironmentEmulation
1818
*/
1919
public function testEnvironmentEmulation()
2020
{
2121
$this->_model = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()
22-
->create('Magento\Core\Model\App\Emulation');
22+
->create('Magento\Store\Model\App\Emulation');
2323
\Magento\TestFramework\Helper\Bootstrap::getInstance()
2424
->loadArea(\Magento\Backend\App\Area\FrontNameResolver::AREA_CODE);
2525
$design = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()

0 commit comments

Comments
 (0)