mirror of
https://github.com/roundcube/roundcubemail.git
synced 2026-03-01 05:44:01 +01:00
30 lines
806 B
PHP
30 lines
806 B
PHP
<?php
|
|
|
|
namespace Roundcube\Tests\Browser\Logon;
|
|
|
|
use Roundcube\Tests\Browser\Components\App;
|
|
use Roundcube\Tests\Browser\TestCase;
|
|
|
|
class LogoutTest extends TestCase
|
|
{
|
|
public function testLogout()
|
|
{
|
|
$this->browse(static function ($browser) {
|
|
$browser->go('settings');
|
|
|
|
// click the Logout button in taskmenu
|
|
$browser->clickTaskMenuItem('logout');
|
|
|
|
// task should be set to 'login'
|
|
$browser->with(new App(), static function ($browser) {
|
|
$browser->assertEnv('task', 'login');
|
|
});
|
|
|
|
// form should exist
|
|
$browser->assertVisible('input[name="_user"]');
|
|
$browser->assertVisible('input[name="_pass"]');
|
|
$browser->assertMissing('#taskmenu');
|
|
});
|
|
}
|
|
}
|