-
Notifications
You must be signed in to change notification settings - Fork 9.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ENGCOM-7143: FIX #27299 Consecutive Requests in Integration Tests fai…
…ling #27300 - Merge Pull Request #27300 from lbajsarowicz/magento2:bugfix/integration-test-requests - Merged commits: 1. 5d0c972 2. ba8d366 3. 4286297 4. 5a2673d
- Loading branch information
Showing
3 changed files
with
66 additions
and
25 deletions.
There are no files selected for viewing
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
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'); | ||
} | ||
} |
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