-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Integration Test to cover consecutive calls.
- Loading branch information
1 parent
5d0c972
commit ba8d366
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
dev/tests/integration/testsuite/Magento/Backend/Controller/Adminhtml/ConsecutiveCallTest.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'); | ||
} | ||
} |