You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
roundcubemail/tests/Browser/Logon/LogoutTest.php

29 lines
728 B
PHP

<?php
namespace Tests\Browser;
use Tests\Browser\Components\App;
class LogoutTest extends TestCase
{
public function testLogout()
{
$this->browse(function ($browser) {
$browser->go('settings');
// click the Logout button in taskmenu
$browser->clickTaskMenuItem('logout');
// task should be set to 'login'
$browser->with(new App(), function ($browser) {
$browser->assertEnv('task', 'login');
});
// form should exist
$browser->assertVisible('input[name="_user"]');
$browser->assertVisible('input[name="_pass"]');
$browser->assertMissing('#taskmenu');
});
}
}