Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

updated test comments

  • Loading branch information...
commit 198b1e083b9916c6d5f4a71c8e8594260372f6a4 1 parent b0e2f5c
@marcopeg marcopeg authored
View
8 lib/Cake/Test/test_app/Controller/CustomValidationObjectController.php
@@ -1,4 +1,12 @@
<?php
+/**
+ * CustomValidationObjectController
+ *
+ * This controller tryies to validate a model dataset with
+ * standard CakePHP model's validation rules.
+ *
+ * Output is created throught debug() method
+ */
class CustomValidationObjectController extends AppController {
public $autoRender = false;
View
11 lib/Cake/Test/test_app/Model/CustomValidationModel.php
@@ -1,4 +1,15 @@
<?php
+/**
+ * CustomValidationModel
+ *
+ * It uses core "notEmpty" validation.
+ *
+ * a custom validation "CustomValidationObject::myCustomRule" loaded
+ * from /Model/Validation/CustomValidationObject
+ *
+ * and a non-existing validation from "NonExistingObject::nonExistingMethod".
+ * this rule will trigger a notice
+ */
class CustomValidationModel extends AppModel {
public $useTable = false;
Please sign in to comment.
Something went wrong with that request. Please try again.