Skip to content
Permalink
Browse files

some cs

  • Loading branch information...
Graziel committed May 9, 2016
1 parent 60a01c8 commit 4178a461254ba090db80ac1f6b76152bf34b530d
Showing with 4 additions and 16 deletions.
  1. +4 −16 tests/TestCase/Validation/ValidatorTest.php
@@ -218,10 +218,7 @@ public function testRequirePresenceAsArray()
true
);
$this->assertFalse($validator->field('title')->isPresenceRequired());
$this->assertEquals(
'update',
$validator->field('content')->isPresenceRequired()
);
$this->assertEquals('update', $validator->field('content')->isPresenceRequired());
$this->assertTrue($validator->field('subject')->isPresenceRequired());
}
@@ -584,20 +581,11 @@ public function testAllowEmptyAsArray()
],
'create'
);
$this->assertEquals(
'create',
$validator->field('title')->isEmptyAllowed()
);
$this->assertEquals(
'create',
$validator->field('subject')->isEmptyAllowed()
);
$this->assertEquals('create', $validator->field('title')->isEmptyAllowed());
$this->assertEquals('create', $validator->field('subject')->isEmptyAllowed());
$this->assertFalse($validator->field('posted_at')->isEmptyAllowed());
$this->assertTrue($validator->field('updated_at')->isEmptyAllowed());
$this->assertEquals(
'update',
$validator->field('show_at')->isEmptyAllowed()
);
$this->assertEquals('update', $validator->field('show_at')->isEmptyAllowed());
}
/**

0 comments on commit 4178a46

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