summaryrefslogtreecommitdiff
path: root/tests/mailfunc.php
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2010-08-07 12:04:39 +0000
committerthomascube <thomas@roundcube.net>2010-08-07 12:04:39 +0000
commit4859fedb92b2ac0b3e717133c2ee32fa449ed06b (patch)
tree41867c40f5fd169b32f97a36acf9c14913652213 /tests/mailfunc.php
parent601597a545f1e11252fbfe29c248ab85545d6541 (diff)
Fix unit tests + update version
Diffstat (limited to 'tests/mailfunc.php')
-rw-r--r--tests/mailfunc.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/mailfunc.php b/tests/mailfunc.php
index 5a17d31c9..a3008a646 100644
--- a/tests/mailfunc.php
+++ b/tests/mailfunc.php
@@ -15,7 +15,7 @@ class rcube_test_mailfunc extends UnitTestCase
// simulate environment to successfully include func.inc
$GLOBALS['RCMAIL'] = $RCMAIL = rcmail::get_instance();
$GLOBALS['OUTPUT'] = $OUTPUT = $RCMAIL->load_gui();
- $RCMAIL->action = 'spell';
+ $RCMAIL->action = 'autocomplete';
$RCMAIL->imap_init(false);
$IMAP = $RCMAIL->imap;
@@ -65,9 +65,9 @@ class rcube_test_mailfunc extends UnitTestCase
$this->assertPattern('/<style [^>]+>/', $html2, "Allow styles in safe mode");
$this->assertPattern('#src="http://evilsite.net/mailings/ex3.jpg"#', $html2, "Allow external images in HTML (safe mode)");
- $this->assertPattern("#url\('http://evilsite.net/newsletter/image/bg/bg-64.jpg'\)#", $html2, "Allow external images in CSS (safe mode)");
+ $this->assertPattern("#url\('?http://evilsite.net/newsletter/image/bg/bg-64.jpg'?\)#", $html2, "Allow external images in CSS (safe mode)");
- $css = '<link rel="stylesheet" type="text/css" href="./bin/modcss.php?u='.urlencode('http://anysite.net/styles/mail.css').'&amp;c=foo"';
+ $css = '<link rel="stylesheet" type="text/css" href="?_task=utils&amp;_action=modcss&amp;u='.urlencode('http://anysite.net/styles/mail.css').'&amp;c=foo"';
$this->assertPattern('#'.preg_quote($css).'#', $html2, "Filter external styleseehts with bin/modcss.php");
}