26 $this->_application = $this->createPartialMock(\
Magento\TestFramework\Application::class, [
'reinitialize']);
27 $this->_object = new \Magento\TestFramework\Annotation\AppIsolation($this->_application);
32 $this->_application =
null;
33 $this->_object =
null;
38 $this->_application->expects($this->once())->method(
'reinitialize');
39 $this->_object->startTestSuite();
48 $this->_object->endTest($this);
58 $this->_object->endTest($this);
63 $this->_application->expects($this->never())->method(
'reinitialize');
64 $this->_object->endTest($this);
67 public function testEndTestIsolationController()
70 $controllerTest = $this->getMockForAbstractClass(\
Magento\TestFramework\TestCase\AbstractController::class);
71 $this->_application->expects($this->once())->method(
'reinitialize');
72 $this->_object->endTest($controllerTest);
80 $this->_application->expects($this->never())->method(
'reinitialize');
81 $this->_object->endTest($this);
89 $this->_application->expects($this->once())->method(
'reinitialize');
90 $this->_object->endTest($this);
testEndTestIsolationInvalid()
testEndTestIsolationDefault()
testEndTestIsolationAmbiguous()
testEndTestIsolationDisabled()
testEndTestIsolationEnabled()