VariableTest.php 607 B

12345678910111213141516171819202122
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Variable\Controller\Adminhtml\System;
  7. /**
  8. * @magentoAppArea adminhtml
  9. */
  10. class VariableTest extends \Magento\TestFramework\TestCase\AbstractBackendController
  11. {
  12. /**
  13. * @covers \Magento\Backend\App\Action::_addLeft
  14. */
  15. public function testEditAction()
  16. {
  17. $this->dispatch('backend/admin/system_variable/edit');
  18. $body = $this->getResponse()->getBody();
  19. $this->assertContains('window.toggleValueElement = function(element) {', $body);
  20. }
  21. }