ActionFake.php 638 B

123456789101112131415161718192021222324252627
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Framework\App\Test\Unit\Action;
  7. use \Magento\Framework\App\Action\Action;
  8. class ActionFake extends Action
  9. {
  10. /**
  11. * Fake action to check a method call from a parent
  12. */
  13. public function execute()
  14. {
  15. $this->_forward(
  16. ActionTest::ACTION_NAME,
  17. ActionTest::CONTROLLER_NAME,
  18. ActionTest::MODULE_NAME,
  19. ActionTest::$actionParams
  20. );
  21. $this->_redirect(ActionTest::FULL_ACTION_NAME, ActionTest::$actionParams);
  22. return;
  23. }
  24. }