summaryrefslogtreecommitdiff
path: root/tests/Selenium/Mail/CheckRecent.php
blob: 865421c2d2833330f0c320511bbb50bda7586fbd (plain)
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']);
    }
}