Skip to content

Commit

Permalink
Re-enable initValidation() tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Mar 18, 2014
1 parent de5ca36 commit dbf26ae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Console/Command/Task/ModelTask.php
Expand Up @@ -528,8 +528,8 @@ public function doValidation($model) {
*/
public function initValidations() {
$options = $choices = [];
if (class_exists('Validation')) {
$options = get_class_methods('Validation');
if (class_exists('Cake\Validation\Validation')) {
$options = get_class_methods('Cake\Validation\Validation');
}
sort($options);
$default = 1;
Expand Down
1 change: 0 additions & 1 deletion tests/TestCase/Console/Command/Task/ModelTaskTest.php
Expand Up @@ -296,7 +296,6 @@ public function testHasAndBelongsToManyGeneration() {
* @return void
*/
public function testInitValidations() {
$this->markTestIncomplete('Not done here yet');
$result = $this->Task->initValidations();
$this->assertTrue(in_array('notEmpty', $result));
}
Expand Down

0 comments on commit dbf26ae

Please sign in to comment.