[Smartupload-svn] [135] バリデーションテスト

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2012年 6月 17日 (日) 22:47:18 JST


Revision: 135
          http://sourceforge.jp/projects/smartupload/scm/svn/commits/135
Author:   hryksbt
Date:     2012-06-17 22:47:17 +0900 (Sun, 17 Jun 2012)
Log Message:
-----------
バリデーションテスト

Modified Paths:
--------------
    trunk/src/Engine/app/models/country.php

Added Paths:
-----------
    trunk/src/Engine/app/tests/cases/components/acl.test.php

-------------- next part --------------
Modified: trunk/src/Engine/app/models/country.php
===================================================================
--- trunk/src/Engine/app/models/country.php	2012-06-16 15:00:50 UTC (rev 134)
+++ trunk/src/Engine/app/models/country.php	2012-06-17 13:47:17 UTC (rev 135)
@@ -1,4 +1,4 @@
-<?php
+<?php
 class Country extends AppModel {
 	var $name = 'Country';
 	var $displayField = 'id';
@@ -32,7 +32,7 @@
 			),
 			'maxlength' => array(
 				'rule' => array('maxlength'),
-				//'message' => 'Your custom message here',
+				//'message' => '文字数が超過してます。',
 				//'allowEmpty' => false,
 				//'required' => false,
 				//'last' => false, // Stop validation after this rule

Added: trunk/src/Engine/app/tests/cases/components/acl.test.php
===================================================================
--- trunk/src/Engine/app/tests/cases/components/acl.test.php	                        (rev 0)
+++ trunk/src/Engine/app/tests/cases/components/acl.test.php	2012-06-17 13:47:17 UTC (rev 135)
@@ -0,0 +1,17 @@
+<?php
+/* Acl Test cases generated on: 2012-06-16 17:05:15 : 1339859115*/
+App::import('Component', 'Acl');
+
+class AclComponentTestCase extends CakeTestCase {
+	var $fixtures = array('app.user_modify', 'app.user', 'app.country', 'app.credit', 'app.bank', 'app.branch', 'app.attribute', 'app.content', 'app.category');
+
+	function startTest() {
+		$this->Acl =& new AclComponent();
+	}
+
+	function endTest() {
+		unset($this->Acl);
+		ClassRegistry::flush();
+	}
+
+}



Smartupload-svn メーリングリストの案内
Back to archive index