Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions | Protected Member Functions | Protected Attributes
AppIsolationTest Class Reference
Inheritance diagram for AppIsolationTest:

Public Member Functions

 testStartTestSuite ()
 
 testEndTestIsolationInvalid ()
 
 testEndTestIsolationAmbiguous ()
 
 testEndTestIsolationDefault ()
 
 testEndTestIsolationDisabled ()
 
 testEndTestIsolationEnabled ()
 

Protected Member Functions

 setUp ()
 
 tearDown ()
 

Protected Attributes

 $_object
 
 $_application
 

Detailed Description

Definition at line 12 of file AppIsolationTest.php.

Member Function Documentation

◆ setUp()

setUp ( )
protected

Definition at line 24 of file AppIsolationTest.php.

25  {
26  $this->_application = $this->createPartialMock(\Magento\TestFramework\Application::class, ['reinitialize']);
27  $this->_object = new \Magento\TestFramework\Annotation\AppIsolation($this->_application);
28  }

◆ tearDown()

tearDown ( )
protected

Definition at line 30 of file AppIsolationTest.php.

31  {
32  $this->_application = null;
33  $this->_object = null;
34  }

◆ testEndTestIsolationAmbiguous()

testEndTestIsolationAmbiguous ( )

@magentoAppIsolation enabled @magentoAppIsolation disabled @expectedException \Magento\Framework\Exception\LocalizedException

Definition at line 56 of file AppIsolationTest.php.

57  {
58  $this->_object->endTest($this);
59  }

◆ testEndTestIsolationDefault()

testEndTestIsolationDefault ( )

Definition at line 61 of file AppIsolationTest.php.

62  {
63  $this->_application->expects($this->never())->method('reinitialize');
64  $this->_object->endTest($this);
65  }

◆ testEndTestIsolationDisabled()

testEndTestIsolationDisabled ( )

@magentoAppIsolation disabled

Definition at line 78 of file AppIsolationTest.php.

79  {
80  $this->_application->expects($this->never())->method('reinitialize');
81  $this->_object->endTest($this);
82  }

◆ testEndTestIsolationEnabled()

testEndTestIsolationEnabled ( )

@magentoAppIsolation enabled

Definition at line 87 of file AppIsolationTest.php.

88  {
89  $this->_application->expects($this->once())->method('reinitialize');
90  $this->_object->endTest($this);
91  }

◆ testEndTestIsolationInvalid()

testEndTestIsolationInvalid ( )

@magentoAppIsolation invalid @expectedException \Magento\Framework\Exception\LocalizedException

Definition at line 46 of file AppIsolationTest.php.

47  {
48  $this->_object->endTest($this);
49  }

◆ testStartTestSuite()

testStartTestSuite ( )

Definition at line 36 of file AppIsolationTest.php.

37  {
38  $this->_application->expects($this->once())->method('reinitialize');
39  $this->_object->startTestSuite();
40  }

Field Documentation

◆ $_application

$_application
protected

Definition at line 22 of file AppIsolationTest.php.

◆ $_object

$_object
protected

Definition at line 17 of file AppIsolationTest.php.


The documentation for this class was generated from the following file: