Aleksander Machniak
2016-05-22 87cf0a3fb158b5ffaa54a79997d7b01492d39b74
commit | author | age
a2a1f8 1 <?php
AM 2
3 class Selenium_Logout extends Selenium_Test
4 {
5     public function testLogout()
6     {
7         $this->go('mail');
8
9         $this->click_button('logout');
10
11         sleep(TESTS_SLEEP);
12
13         // task should be set to 'login'
14         $env = $this->get_env();
15         $this->assertEquals('login', $env['task']);
16
17         // form should exist
18         $user_input = $this->byCssSelector('form input[name="_user"]');
19     }
20 }