File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
dev/tests/integration/testsuite/Magento/Framework/Interception Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change 7
7
8
8
/**
9
9
* Class GeneralTest
10
+ *
10
11
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
11
12
*/
12
13
abstract class AbstractPlugin extends \PHPUnit \Framework \TestCase
13
14
{
14
15
/**
16
+ * Config reader
17
+ *
15
18
* @var \PHPUnit_Framework_MockObject_MockObject
16
19
*/
17
20
protected $ _configReader ;
18
21
19
22
/**
23
+ * Object Manager
24
+ *
20
25
* @var \Magento\Framework\ObjectManagerInterface
21
26
*/
22
27
protected $ _objectManager ;
23
28
24
29
/**
30
+ * Applicartion Object Manager
31
+ *
25
32
* @var \Magento\Framework\ObjectManagerInterface
26
33
*/
27
34
private $ applicationObjectManager ;
28
35
36
+ /**
37
+ * Set up
38
+ */
29
39
public function setUp ()
30
40
{
31
41
if (!$ this ->_objectManager ) {
@@ -36,11 +46,17 @@ public function setUp()
36
46
\Magento \Framework \App \ObjectManager::setInstance ($ this ->_objectManager );
37
47
}
38
48
49
+ /**
50
+ * Tear down
51
+ */
39
52
public function tearDown ()
40
53
{
41
54
\Magento \Framework \App \ObjectManager::setInstance ($ this ->applicationObjectManager );
42
55
}
43
56
57
+ /**
58
+ * Set up Interception Config
59
+ */
44
60
public function setUpInterceptionConfig ($ pluginConfig )
45
61
{
46
62
$ config = new \Magento \Framework \Interception \ObjectManager \Config \Developer ();
You can’t perform that action at this time.
0 commit comments