ltsecurityinc安防产品在线商城代码
This commit is contained in:
+32
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
|
||||
namespace Magento\Security\Controller\Adminhtml\Session;
|
||||
|
||||
class LogoutAllTest extends \Magento\TestFramework\TestCase\AbstractBackendController
|
||||
{
|
||||
/**
|
||||
* Set up
|
||||
*/
|
||||
protected function setUp(): void
|
||||
{
|
||||
$this->uri = 'backend/security/session/logoutAll';
|
||||
parent::setUp();
|
||||
}
|
||||
|
||||
/**
|
||||
* logoutAllAction test
|
||||
*/
|
||||
public function testLogoutAllAction()
|
||||
{
|
||||
$this->dispatch('backend/security/session/logoutAll');
|
||||
$this->assertSessionMessages(
|
||||
$this->equalTo(['All other open sessions for this account were terminated.']),
|
||||
\Magento\Framework\Message\MessageInterface::TYPE_SUCCESS
|
||||
);
|
||||
$this->assertRedirect($this->stringContains('security/session/activity'));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user