From 69a69d48a2686337adafa6f2d6b1ad82945be190 Mon Sep 17 00:00:00 2001 From: mark_story Date: Thu, 19 Jan 2012 22:04:10 -0500 Subject: [PATCH] Add test for Validation::url() + sftp. --- lib/Cake/Test/Case/Utility/ValidationTest.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/Cake/Test/Case/Utility/ValidationTest.php b/lib/Cake/Test/Case/Utility/ValidationTest.php index b843e593c..96b573584 100644 --- a/lib/Cake/Test/Case/Utility/ValidationTest.php +++ b/lib/Cake/Test/Case/Utility/ValidationTest.php @@ -1738,6 +1738,7 @@ class ValidationTest extends CakeTestCase { $this->assertTrue(Validation::url('ftp://www.cakephp.org/pub/cake')); $this->assertTrue(Validation::url('ftp://cakephp.org/pub/cake')); $this->assertTrue(Validation::url('ftp://192.168.0.1/pub/cake')); + $this->assertTrue(Validation::url('sftp://192.168.0.1/pub/cake')); $this->assertFalse(Validation::url('ftps://256.168.0.1/pub/cake')); $this->assertFalse(Validation::url('ftp://256.168.0.1/pub/cake')); $this->assertTrue(Validation::url('https://my.domain.com/gizmo/app?class=MySip;proc=start'));