Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
LogoutUser.php
Go to the documentation of this file.
1 <?php
8 
9 use Magento\Mtf\Factory\Factory;
10 use Magento\Mtf\Fixture\FixtureInterface;
11 use Magento\Mtf\Handler\Ui;
12 
18 class LogoutUser extends Ui
19 {
28  public function persist(FixtureInterface $fixture = null)
29  {
30  $homePage = Factory::getPageFactory()->getAdminDashboard();
31  $headerBlock = $homePage->getAdminPanelHeader();
32  $headerBlock->logOut();
33  }
34 }
persist(FixtureInterface $fixture=null)
Definition: LogoutUser.php:28