Skip to content

Commit ba8d366

Browse files
committed
Add Integration Test to cover consecutive calls.
1 parent 5d0c972 commit ba8d366

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?php
2+
/**
3+
* Copyright © Magento, Inc. All rights reserved.
4+
* See COPYING.txt for license details.
5+
*/
6+
declare(strict_types=1);
7+
8+
namespace Magento\Backend\Controller\Adminhtml;
9+
10+
use Magento\TestFramework\TestCase\AbstractBackendController;
11+
12+
/**
13+
* @magentoAppArea adminhtml
14+
*/
15+
class ConsecutiveCallTest extends AbstractBackendController
16+
{
17+
/**
18+
* Consecutive calls were failing due to `$request['dispatched']` not being reset before request
19+
*/
20+
public function testConsecutiveCallShouldNotFail()
21+
{
22+
$this->dispatch('backend/admin/auth/login');
23+
$this->dispatch('backend/admin/auth/login');
24+
}
25+
}

0 commit comments

Comments
 (0)