1234567891011121314151617181920212223242526272829303132 |
- <?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()
- {
- $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'));
- }
- }
|