Skip to content

Commit

Permalink
Add Integration Test to cover consecutive calls.
Browse files Browse the repository at this point in the history
  • Loading branch information
lbajsarowicz committed Mar 18, 2020
1 parent 5d0c972 commit ba8d366
Showing 1 changed file with 25 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
declare(strict_types=1);

namespace Magento\Backend\Controller\Adminhtml;

use Magento\TestFramework\TestCase\AbstractBackendController;

/**
* @magentoAppArea adminhtml
*/
class ConsecutiveCallTest extends AbstractBackendController
{
/**
* Consecutive calls were failing due to `$request['dispatched']` not being reset before request
*/
public function testConsecutiveCallShouldNotFail()
{
$this->dispatch('backend/admin/auth/login');
$this->dispatch('backend/admin/auth/login');
}
}

0 comments on commit ba8d366

Please sign in to comment.