SetupDocBlock.php 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\TestFramework\Bootstrap;
  7. /**
  8. * Bootstrap of the custom DocBlock annotations.
  9. *
  10. * \Magento\TestFramework\Isolation\DeploymentConfig was excluded for setup/upgrade tests.
  11. *
  12. * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
  13. */
  14. class SetupDocBlock extends \Magento\TestFramework\Bootstrap\DocBlock
  15. {
  16. /**
  17. * Get list of subscribers. In addition, register <b>reinstallMagento</b> annotation processing.
  18. *
  19. * @param \Magento\TestFramework\Application $application
  20. * @return array
  21. */
  22. protected function _getSubscribers(\Magento\TestFramework\Application $application)
  23. {
  24. return [
  25. new \Magento\TestFramework\Workaround\Segfault(),
  26. new \Magento\TestFramework\Workaround\Cleanup\TestCaseProperties(),
  27. new \Magento\TestFramework\Workaround\Cleanup\StaticProperties(),
  28. new \Magento\TestFramework\Isolation\WorkingDirectory(),
  29. new \Magento\TestFramework\Workaround\DeploymentConfig(),
  30. new \Magento\TestFramework\Annotation\ComponentRegistrarFixture($this->_fixturesBaseDir),
  31. new \Magento\TestFramework\Annotation\SchemaFixture($this->_fixturesBaseDir),
  32. new \Magento\TestFramework\Annotation\Cache(),
  33. new \Magento\TestFramework\Workaround\CacheClean(),
  34. new \Magento\TestFramework\Annotation\ReinstallInstance($application),
  35. new \Magento\TestFramework\Annotation\CopyModules(),
  36. new \Magento\TestFramework\Annotation\DataProviderFromFile()
  37. ];
  38. }
  39. }