Setup.php 827 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Mtf\Util\Command\Cli;
  7. use Magento\Mtf\Util\Command\Cli;
  8. /**
  9. * Setup Magento for tests executions.
  10. */
  11. class Setup extends Cli
  12. {
  13. /**
  14. * Parameter for uninstall Magento command.
  15. */
  16. const PARAM_SETUP_UNINSTALL = 'setup:uninstall';
  17. /**
  18. * Parameter for DI compile Magento command.
  19. */
  20. const PARAM_SETUP_DI_COMPILE = 'setup:di:compile';
  21. /**
  22. * Uninstall Magento.
  23. *
  24. * @return void
  25. */
  26. public function uninstall()
  27. {
  28. parent::execute(Setup::PARAM_SETUP_UNINSTALL);
  29. }
  30. /**
  31. * DI Compile.
  32. *
  33. * @return void
  34. */
  35. public function diCompile()
  36. {
  37. parent::execute(Setup::PARAM_SETUP_DI_COMPILE);
  38. }
  39. }