NewActionTest.php 776 B

123456789101112131415161718192021222324
  1. <?php
  2. /**
  3. *
  4. * Copyright © Magento, Inc. All rights reserved.
  5. * See COPYING.txt for license details.
  6. */
  7. namespace Magento\Integration\Test\Unit\Controller\Adminhtml\Integration;
  8. class NewActionTest extends \Magento\Integration\Test\Unit\Controller\Adminhtml\IntegrationTest
  9. {
  10. public function testNewAction()
  11. {
  12. $this->_verifyLoadAndRenderLayout();
  13. // verify the request is forwarded to 'edit' action
  14. $this->_requestMock->expects($this->any())
  15. ->method('setActionName')
  16. ->with('edit')
  17. ->will($this->returnValue($this->_requestMock));
  18. $integrationContr = $this->_createIntegrationController('NewAction');
  19. $result = $integrationContr->execute();
  20. $this->assertNull($result);
  21. }
  22. }