Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
DocBlock.php
Go to the documentation of this file.
1 <?php
7 
9 
15 class DocBlock
16 {
20  protected $_fixturesBaseDir;
21 
25  public function __construct($fixturesBaseDir)
26  {
27  $this->_fixturesBaseDir = $fixturesBaseDir;
28  }
29 
35  {
36  $eventManager = new \Magento\TestFramework\EventManager($this->_getSubscribers($application));
39  }
40 
52  {
53  return [
54  new \Magento\TestFramework\Workaround\Segfault(),
55  new \Magento\TestFramework\Workaround\Cleanup\TestCaseProperties(),
56  new \Magento\TestFramework\Workaround\Cleanup\StaticProperties(),
57  new \Magento\TestFramework\Isolation\WorkingDirectory(),
58  new \Magento\TestFramework\Isolation\DeploymentConfig(),
59  new \Magento\TestFramework\Annotation\AppIsolation($application),
60  new \Magento\TestFramework\Annotation\IndexerDimensionMode($application),
61  new \Magento\TestFramework\Isolation\AppConfig(),
62  new \Magento\TestFramework\Annotation\ConfigFixture(),
63  new \Magento\TestFramework\Annotation\DataFixtureBeforeTransaction($this->_fixturesBaseDir),
64  new \Magento\TestFramework\Event\Transaction(
65  new \Magento\TestFramework\EventManager(
66  [
67  new \Magento\TestFramework\Annotation\DbIsolation(),
68  new \Magento\TestFramework\Annotation\DataFixture($this->_fixturesBaseDir),
69  ]
70  )
71  ),
72  new \Magento\TestFramework\Annotation\ComponentRegistrarFixture($this->_fixturesBaseDir),
73  new \Magento\TestFramework\Annotation\AppArea($application),
74  new \Magento\TestFramework\Annotation\Cache($application),
75  new \Magento\TestFramework\Annotation\AdminConfigFixture(),
76  new \Magento\TestFramework\Annotation\ConfigFixture(),
77  ];
78  }
79 }
$application
Definition: bootstrap.php:58
static setDefaultEventManager(\Magento\TestFramework\EventManager $eventManager=null)
Definition: PhpUnit.php:31
_getSubscribers(Application $application)
Definition: DocBlock.php:51
registerAnnotations(Application $application)
Definition: DocBlock.php:34
static setDefaultEventManager(\Magento\TestFramework\EventManager $eventManager=null)
Definition: Magento.php:33