@@ -329,6 +329,11 @@ public function test_action_add_no_submit()
329329 ->method ('get_find_username_link ' )
330330 ->willReturn ('u_find_username ' );
331331
332+ $ this ->helper ->expects (self ::once ())
333+ ->method ('get_date ' )
334+ ->with ('tomorrow ' )
335+ ->willReturn ('2000-12-16 ' );
336+
332337 $ this ->template ->expects (self ::once ())
333338 ->method ('assign_vars ' )
334339 ->with (array (
@@ -337,6 +342,7 @@ public function test_action_add_no_submit()
337342 'U_ACTION ' => "{$ this ->u_action }&action=add " ,
338343 'U_FIND_USERNAME ' => 'u_find_username ' ,
339344 'U_ENABLE_VISUAL_DEMO ' => null ,
345+ 'DATE_MINIMUM ' => '2000-12-16 ' ,
340346 ));
341347
342348 $ this ->request ->expects (self ::once ())
@@ -679,6 +685,11 @@ public function test_action_edit_no_submit($ad_id)
679685 ->method ('get_find_username_link ' )
680686 ->willReturn ('u_find_username ' );
681687
688+ $ this ->helper ->expects (self ::once ())
689+ ->method ('get_date ' )
690+ ->with ('tomorrow ' )
691+ ->willReturn ('2000-12-16 ' );
692+
682693 $ this ->template ->expects (self ::once ())
683694 ->method ('assign_vars ' )
684695 ->with (array (
@@ -688,6 +699,7 @@ public function test_action_edit_no_submit($ad_id)
688699 'U_ACTION ' => "{$ this ->u_action }&action=edit&id= " . $ ad_id ,
689700 'U_FIND_USERNAME ' => 'u_find_username ' ,
690701 'U_ENABLE_VISUAL_DEMO ' => null ,
702+ 'DATE_MINIMUM ' => '2000-12-16 ' ,
691703 ));
692704
693705 $ this ->input ->expects (self ::once ())
@@ -743,6 +755,11 @@ public function test_action_edit_preview()
743755 ->method ('assign_var ' )
744756 ->with ('PREVIEW ' , 'Ad Code #1 ' );
745757
758+ $ this ->helper ->expects (self ::once ())
759+ ->method ('get_date ' )
760+ ->with ('tomorrow ' )
761+ ->willReturn ('2000-12-16 ' );
762+
746763 $ this ->template ->expects (self ::once ())
747764 ->method ('assign_vars ' )
748765 ->with (array (
@@ -752,6 +769,7 @@ public function test_action_edit_preview()
752769 'U_ACTION ' => "{$ this ->u_action }&action=edit&id=1 " ,
753770 'U_FIND_USERNAME ' => 'u_find_username ' ,
754771 'U_ENABLE_VISUAL_DEMO ' => null ,
772+ 'DATE_MINIMUM ' => '2000-12-16 ' ,
755773 ));
756774
757775 $ this ->input ->expects (self ::once ())
@@ -850,6 +868,11 @@ public function test_action_edit_submit($s_error, $success, $ad_owner)
850868 ->method ('get_find_username_link ' )
851869 ->willReturn ('u_find_username ' );
852870
871+ $ this ->helper ->expects (self ::once ())
872+ ->method ('get_date ' )
873+ ->with ('tomorrow ' )
874+ ->willReturn ('2000-12-16 ' );
875+
853876 $ this ->template ->expects (self ::once ())
854877 ->method ('assign_vars ' )
855878 ->with (array (
@@ -859,6 +882,7 @@ public function test_action_edit_submit($s_error, $success, $ad_owner)
859882 'U_ACTION ' => "{$ this ->u_action }&action=edit&id=1 " ,
860883 'U_FIND_USERNAME ' => 'u_find_username ' ,
861884 'U_ENABLE_VISUAL_DEMO ' => null ,
885+ 'DATE_MINIMUM ' =>'2000-12-16 ' ,
862886 ));
863887
864888 $ this ->input ->expects (self ::once ())
0 commit comments