From 9d195d6e82c3be4e543a47ef8ff1e9fe54bd0939 Mon Sep 17 00:00:00 2001
From: alecpl <alec@alec.pl>
Date: Tue, 05 Jul 2011 13:09:25 -0400
Subject: [PATCH] - Added lost argument in delete_record() method

---
 tests/mailfunc.php |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/tests/mailfunc.php b/tests/mailfunc.php
index 92cfbb1..9d70bef 100644
--- a/tests/mailfunc.php
+++ b/tests/mailfunc.php
@@ -145,4 +145,16 @@
     $this->assertNoPattern('|<p>test2</p>|', $washed, "Conditional HTML comments");
   }
 
+  /**
+   * Test URI base resolving in HTML messages
+   */
+  function test_resolve_base()
+  {
+    $html = file_get_contents(TESTS_DIR . 'src/htmlbase.txt');
+    $html = rcmail_resolve_base($html);
+
+    $this->assertPattern('|src="http://alec\.pl/dir/img1\.gif"|', $html, "URI base resolving [1]");
+    $this->assertPattern('|src="http://alec\.pl/dir/img2\.gif"|', $html, "URI base resolving [2]");
+    $this->assertPattern('|src="http://alec\.pl/img3\.gif"|', $html, "URI base resolving [3]");
+  }
 }

--
Gitblit v1.9.1