/** * Test if the admin session is created in database * * @magentoDbIsolation enabled */ public function testIsAdminSessionIsCreated() { $this->auth->login(\Magento\TestFramework\Bootstrap::ADMIN_NAME, \Magento\TestFramework\Bootstrap::ADMIN_PASSWORD); $sessionId = $this->authSession->getSessionId(); $this->adminSessionInfo->load($sessionId, 'session_id'); $this->assertGreaterThanOrEqual(1, (int) $this->adminSessionInfo->getId()); $this->auth->logout(); }