Skip to content

Commit 7be1e58

Browse files
committed
2907: #2907: Integration Test Annotation magentoAppArea breaks with some valid values
1 parent 6b749c0 commit 7be1e58

File tree

1 file changed

+0
-68
lines changed

1 file changed

+0
-68
lines changed

dev/tests/integration/framework/tests/unit/testsuite/Magento/Test/ApplicationTest.php

Lines changed: 0 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
use Magento\Framework\App\State;
1414
use Magento\Framework\Autoload\ClassLoaderWrapper;
1515
use Magento\Framework\Config\Scope;
16-
use Magento\Framework\Exception\LocalizedException;
1716
use Magento\Framework\ObjectManagerInterface;
1817
use Magento\Framework\Shell;
1918
use Magento\TestFramework\Application;
@@ -83,73 +82,6 @@ public function testConstructor()
8382
);
8483
}
8584

86-
/**
87-
* Test \Magento\TestFramework\Application will correctly load specified areas.
88-
*/
89-
public function testBackEndLoadArea()
90-
{
91-
$configScope = $this->getMockBuilder(Scope::class)->disableOriginalConstructor()->getMock();
92-
$configScope->expects($this->once())->method('setCurrentScope')->with($this->identicalTo(Area::AREA_ADMINHTML));
93-
94-
$configLoader = $this->getMockBuilder(ConfigLoader::class)->disableOriginalConstructor()->getMock();
95-
$configLoader->expects($this->once())
96-
->method('load')
97-
->with($this->identicalTo(Area::AREA_ADMINHTML))
98-
->willReturn([]);
99-
$areaList = $this->getMockBuilder(AreaList::class)->disableOriginalConstructor()->getMock();
100-
101-
/** @var ObjectManagerInterface|\PHPUnit_Framework_MockObject_MockObject $objectManager */
102-
$objectManager = $this->getMockBuilder(ObjectManagerInterface::class)->disableOriginalConstructor()->getMock();
103-
$objectManager->expects($this->once())->method('configure')->with($this->identicalTo([]));
104-
$objectManager->expects($this->exactly(3))
105-
->method('get')
106-
->willReturnOnConsecutiveCalls(
107-
$configScope,
108-
$configLoader,
109-
$areaList
110-
);
111-
112-
\Magento\TestFramework\Helper\Bootstrap::setObjectManager($objectManager);
113-
114-
$bootstrap = $this->getMockBuilder(\Magento\TestFramework\Helper\Bootstrap::class)
115-
->disableOriginalConstructor()
116-
->getMock();
117-
$bootstrap->expects($this->once())->method('loadArea')->with($this->identicalTo(Area::AREA_ADMINHTML));
118-
\Magento\TestFramework\Helper\Bootstrap::setInstance($bootstrap);
119-
120-
$this->subject->loadArea(Area::AREA_ADMINHTML);
121-
}
122-
123-
/**
124-
* Test \Magento\TestFramework\Application will correctly load specified areas.
125-
*/
126-
public function testFrontEndLoadArea()
127-
{
128-
$configScope = $this->getMockBuilder(Scope::class)->disableOriginalConstructor()->getMock();
129-
$configScope->expects($this->once())->method('setCurrentScope')->with($this->identicalTo(Area::AREA_FRONTEND));
130-
131-
$configLoader = $this->getMockBuilder(ConfigLoader::class)->disableOriginalConstructor()->getMock();
132-
$configLoader->expects($this->once())
133-
->method('load')
134-
->with($this->identicalTo(Area::AREA_FRONTEND))
135-
->willReturn([]);
136-
$areaList = $this->getMockBuilder(AreaList::class)->disableOriginalConstructor()->getMock();
137-
138-
/** @var ObjectManagerInterface|\PHPUnit_Framework_MockObject_MockObject $objectManager */
139-
$objectManager = $this->getMockBuilder(ObjectManagerInterface::class)->disableOriginalConstructor()->getMock();
140-
$objectManager->expects($this->once())->method('configure')->with($this->identicalTo([]));
141-
$objectManager->expects($this->exactly(3))
142-
->method('get')
143-
->willReturnOnConsecutiveCalls(
144-
$configScope,
145-
$configLoader,
146-
$areaList
147-
);
148-
149-
\Magento\TestFramework\Helper\Bootstrap::setObjectManager($objectManager);
150-
$this->subject->loadArea(Area::AREA_FRONTEND);
151-
}
152-
15385
/**
15486
* Test \Magento\TestFramework\Application will correctly load specified areas.
15587
*

0 commit comments

Comments
 (0)