Skip to content
Permalink
Browse files

Reduce duplication in tests.

  • Loading branch information...
markstory committed Oct 22, 2016
1 parent 7d316f0 commit ee010dd5eed8f7fec3b6be6958fc4a93e1f24f30
Showing with 0 additions and 32 deletions.
  1. +0 −32 tests/TestCase/Validation/ValidationTest.php
@@ -1672,22 +1672,6 @@ public function testTruthy()
$this->assertFalse(Validation::truthy('0'));
$this->assertFalse(Validation::truthy('false'));
$this->assertTrue(Validation::truthy(1));
$this->assertTrue(Validation::truthy(true));
$this->assertTrue(Validation::truthy('1'));
$this->assertFalse(Validation::truthy('true'));
$this->assertFalse(Validation::truthy('on'));
$this->assertFalse(Validation::truthy('yes'));
$this->assertFalse(Validation::truthy(0));
$this->assertFalse(Validation::truthy(false));
$this->assertFalse(Validation::truthy('0'));
$this->assertFalse(Validation::truthy('false'));
$this->assertFalse(Validation::truthy('on'));
$this->assertFalse(Validation::truthy('yes'));
$this->assertTrue(Validation::truthy('on', ['on', 'yes', 'true']));
$this->assertTrue(Validation::truthy('yes', ['on', 'yes', 'true']));
$this->assertTrue(Validation::truthy('true', ['on', 'yes', 'true']));
@@ -1719,22 +1703,6 @@ public function testFalsey()
$this->assertFalse(Validation::falsey('1'));
$this->assertFalse(Validation::falsey('true'));
$this->assertTrue(Validation::falsey(0));
$this->assertTrue(Validation::falsey(false));
$this->assertTrue(Validation::falsey('0'));
$this->assertFalse(Validation::falsey('false'));
$this->assertFalse(Validation::falsey('off'));
$this->assertFalse(Validation::falsey('no'));
$this->assertFalse(Validation::falsey(1));
$this->assertFalse(Validation::falsey(true));
$this->assertFalse(Validation::falsey('1'));
$this->assertFalse(Validation::falsey('true'));
$this->assertFalse(Validation::falsey('off'));
$this->assertFalse(Validation::falsey('no'));
$this->assertTrue(Validation::falsey('off', ['off', 'no', 'false']));
$this->assertTrue(Validation::falsey('no', ['off', 'no', 'false']));
$this->assertTrue(Validation::falsey('false', ['off', 'no', 'false']));

0 comments on commit ee010dd

Please sign in to comment.
You can’t perform that action at this time.