Development

Changeset 10187

You must first sign up to be able to contribute.

Changeset 10187

Show
Ignore:
Timestamp:
07/09/08 17:19:55 (2 months ago)
Author:
FabianLange
Message:

added some kind of test for mail_to encoding

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.1/test/unit/helper/UrlHelperTest.php

    r9325 r10187  
    3838} 
    3939 
    40 $t = new lime_test(37, new lime_output_color()); 
     40$t = new lime_test(38, new lime_output_color()); 
    4141 
    4242$context = sfContext::getInstance(array('controller' => 'myController', 'request' => 'myRequest')); 
     
    125125$t->is(mail_to('webmaster@example.com'),'<a href="mailto:webmaster@example.com">webmaster@example.com</a>','mail_to with only given email works'); 
    126126$t->is(mail_to('webmaster@example.com', 'send us an email'),'<a href="mailto:webmaster@example.com">send us an email</a>','mail_to with given email and title works'); 
     127$t->isnt(mail_to('webmaster@example.com', 'encoded', array('encode' => true)),'<a href="mailto:webmaster@example.com">encoded</a>','mail_to with encoding works'); 
    127128 
    128129$t->is(mail_to('webmaster@example.com', '', array(), array('subject' => 'test subject', 'body' => 'test body')),'<a href="mailto:webmaster@example.com?subject=test+subject&amp;body=test+body">webmaster@example.com</a>', 'mail_to() works with given default values in array form');