mirror of
https://github.com/roundcube/roundcubemail.git
synced 2026-03-03 14:54:01 +01:00
29 lines
728 B
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');
|
|
});
|
|
}
|
|
}
|