Aleksander Machniak
2015-08-07 1b39d9a6c744a393e7930c2493cc2ddc9c9e95bf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<?php
 
class Selenium_Mail_CheckRecent extends Selenium_Test
{
    public function testCheckRecent()
    {
        $this->go('mail');
 
        $res = $this->ajaxResponse('check-recent', "rcmail.command('checkmail')");
 
        $this->assertEquals('check-recent', $res['action']);
        $this->assertRegExp('/this\.set_unread_count/', $res['exec']);
    }
}