WebapiDocBlock.php 791 B

123456789101112131415161718192021222324
  1. <?php
  2. /**
  3. * Bootstrap of the custom Web API DocBlock annotations.
  4. *
  5. * Copyright © Magento, Inc. All rights reserved.
  6. * See COPYING.txt for license details.
  7. */
  8. namespace Magento\TestFramework\Bootstrap;
  9. class WebapiDocBlock extends \Magento\TestFramework\Bootstrap\DocBlock
  10. {
  11. /**
  12. * Get list of subscribers. In addition, register <b>magentoApiDataFixture</b> annotation processing.
  13. *
  14. * @param \Magento\TestFramework\Application $application
  15. * @return array
  16. */
  17. protected function _getSubscribers(\Magento\TestFramework\Application $application)
  18. {
  19. $subscribers = parent::_getSubscribers($application);
  20. $subscribers[] = new \Magento\TestFramework\Annotation\ApiDataFixture($this->_fixturesBaseDir);
  21. return $subscribers;
  22. }
  23. }