From c95221919ab00b0b5d308c6584493c8d4864360a Mon Sep 17 00:00:00 2001 From: jperras Date: Wed, 7 Oct 2009 01:10:51 -0400 Subject: [PATCH] Removing validation tests that relied on removed define()'ed constants. --- cake/tests/cases/libs/validation.test.php | 27 ----------------------- 1 file changed, 27 deletions(-) diff --git a/cake/tests/cases/libs/validation.test.php b/cake/tests/cases/libs/validation.test.php index 08e988359..5893a8bc7 100644 --- a/cake/tests/cases/libs/validation.test.php +++ b/cake/tests/cases/libs/validation.test.php @@ -1770,33 +1770,6 @@ class ValidationTest extends CakeTestCase { $this->assertFalse(Validation::inList('three', array('one', 'two'))); } -/** - * testValidNumber method - * - * @access public - * @return void - */ - function testValidNumber() { - $this->assertTrue(Validation::custom('12345', VALID_NUMBER)); - $this->assertTrue(Validation::custom('-12345', VALID_NUMBER)); - $this->assertTrue(Validation::custom('+12345', VALID_NUMBER)); - $this->assertFalse(Validation::custom('--12345', VALID_NUMBER)); - $this->assertFalse(Validation::custom('++12345', VALID_NUMBER)); - $this->assertFalse(Validation::custom('a12345', VALID_NUMBER)); - $this->assertFalse(Validation::custom('12345z', VALID_NUMBER)); - $this->assertFalse(Validation::custom('-a12345z', VALID_NUMBER)); - $this->assertFalse(Validation::custom('-', VALID_NUMBER)); - $this->assertFalse(Validation::custom('123-12345', VALID_NUMBER)); - $this->assertTrue(Validation::custom('1.2345', VALID_NUMBER)); - $this->assertTrue(Validation::custom('-1.2345', VALID_NUMBER)); - $this->assertTrue(Validation::custom('+1.2345', VALID_NUMBER)); - $this->assertFalse(Validation::custom('1..2345', VALID_NUMBER)); - $this->assertFalse(Validation::custom('-1..2345', VALID_NUMBER)); - $this->assertFalse(Validation::custom('+1..2345', VALID_NUMBER)); - $this->assertFalse(Validation::custom('.2345', VALID_NUMBER)); - $this->assertFalse(Validation::custom('12345.', VALID_NUMBER)); - } - /** * testRange method *