Aleksander Machniak
2016-05-06 acf633c73bc8df9a5036bc52d7568f4213ab73c7
tests/Selenium/Mail/CheckRecent.php
New file
@@ -0,0 +1,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']);
    }
}