浏览代码

Improve fixture

euromark 11 年之前
父节点
当前提交
75249bc1d9
共有 1 个文件被更改,包括 11 次插入11 次删除
  1. 11 11
      Test/Fixture/LogFixture.php

+ 11 - 11
Test/Fixture/LogFixture.php

@@ -17,7 +17,7 @@ class LogFixture extends CakeTestFixture {
 		'description' => array('type' => 'string', 'null' => false, 'default' => null, 'collate' => 'utf8_unicode_ci', 'comment' => '', 'charset' => 'utf8'),
 		'change' => array('type' => 'text', 'null' => false, 'default' => null, 'collate' => 'utf8_unicode_ci', 'comment' => '', 'charset' => 'utf8'),
 		'model' => array('type' => 'string', 'null' => false, 'default' => null, 'length' => 40, 'collate' => 'utf8_unicode_ci', 'comment' => '', 'charset' => 'utf8'),
-		'foreign_id' => array('type' => 'string', 'null' => false, 'default' => null, 'length' => 36, 'collate' => 'utf8_unicode_ci', 'comment' => '', 'charset' => 'utf8'),
+		'foreign_key' => array('type' => 'string', 'null' => false, 'default' => null, 'length' => 36, 'collate' => 'utf8_unicode_ci', 'comment' => '', 'charset' => 'utf8'),
 		'action' => array('type' => 'string', 'null' => false, 'default' => null, 'length' => 40, 'collate' => 'utf8_unicode_ci', 'comment' => '', 'charset' => 'utf8'),
 		'user_id' => array('type' => 'string', 'null' => false, 'default' => null, 'length' => 36, 'collate' => 'utf8_unicode_ci', 'comment' => '', 'charset' => 'utf8'),
 		'created' => array('type' => 'datetime', 'null' => false, 'default' => null, 'collate' => null, 'comment' => ''),
@@ -38,7 +38,7 @@ class LogFixture extends CakeTestFixture {
 			'description' => 'PrepaidAccount "2" (1) added by User "Admin" (16).',
 			'change' => 'amount () => (2), user_id () => (14), created () => (2011-07-30 18:36:55)',
 			'model' => 'PrepaidAccount',
-			'foreign_id' => '1',
+			'foreign_key' => '1',
 			'action' => 'add',
 			'user_id' => '16',
 			'created' => '2011-07-30 18:36:55',
@@ -50,7 +50,7 @@ class LogFixture extends CakeTestFixture {
 			'description' => 'PrepaidAccount "3" (2) added by User "Admin" (16).',
 			'change' => 'amount () => (3), user_id () => (14), created () => (2011-07-30 19:26:31)',
 			'model' => 'PrepaidAccount',
-			'foreign_id' => '2',
+			'foreign_key' => '2',
 			'action' => 'add',
 			'user_id' => '16',
 			'created' => '2011-07-30 19:26:31',
@@ -62,7 +62,7 @@ class LogFixture extends CakeTestFixture {
 			'description' => 'PrepaidAccount "1" (3) added by User "Admin" (16).',
 			'change' => 'amount () => (1), user_id () => (17), created () => (2011-07-30 20:46:18)',
 			'model' => 'PrepaidAccount',
-			'foreign_id' => '3',
+			'foreign_key' => '3',
 			'action' => 'add',
 			'user_id' => '16',
 			'created' => '2011-07-30 20:46:18',
@@ -74,7 +74,7 @@ class LogFixture extends CakeTestFixture {
 			'description' => 'PrepaidAccount "3.0000" (2) deleted by User "Admin" (16).',
 			'change' => '',
 			'model' => 'PrepaidAccount',
-			'foreign_id' => '2',
+			'foreign_key' => '2',
 			'action' => 'delete',
 			'user_id' => '16',
 			'created' => '2011-07-30 20:46:21',
@@ -86,7 +86,7 @@ class LogFixture extends CakeTestFixture {
 			'description' => 'PrepaidAccount "2.50" (4) added by User "admin@admin.de" (16).',
 			'change' => 'amount () => (2.50), user_id () => (20), created () => (2011-09-16 10:21:39)',
 			'model' => 'PrepaidAccount',
-			'foreign_id' => '4',
+			'foreign_key' => '4',
 			'action' => 'add',
 			'user_id' => '16',
 			'created' => '2011-09-16 10:21:39',
@@ -98,7 +98,7 @@ class LogFixture extends CakeTestFixture {
 			'description' => 'PrepaidAccount "3.5000" (4) updated by User "admin@admin.de" (16).',
 			'change' => 'amount (2.5000) => (3.5000)',
 			'model' => 'PrepaidAccount',
-			'foreign_id' => '4',
+			'foreign_key' => '4',
 			'action' => 'edit',
 			'user_id' => '16',
 			'created' => '2011-09-16 10:22:35',
@@ -110,7 +110,7 @@ class LogFixture extends CakeTestFixture {
 			'description' => 'PrepaidAccount "4" (1) updated by User "user@user.de" (14).',
 			'change' => 'amount (2.0000) => (4)',
 			'model' => 'PrepaidAccount',
-			'foreign_id' => '1',
+			'foreign_key' => '1',
 			'action' => 'edit',
 			'user_id' => '14',
 			'created' => '2011-09-23 17:13:40',
@@ -122,7 +122,7 @@ class LogFixture extends CakeTestFixture {
 			'description' => 'Custom action by User "user@user.de" (14).',
 			'change' => '',
 			'model' => 'PrepaidAccount',
-			'foreign_id' => '1',
+			'foreign_key' => '1',
 			'action' => 'deposited (2.00)',
 			'user_id' => '14',
 			'created' => '2011-09-23 17:13:41',
@@ -134,7 +134,7 @@ class LogFixture extends CakeTestFixture {
 			'description' => 'PrepaidAccount "19" (1) updated by User "user@user.de" (14).',
 			'change' => 'amount (4.0000) => (19)',
 			'model' => 'PrepaidAccount',
-			'foreign_id' => '1',
+			'foreign_key' => '1',
 			'action' => 'edit',
 			'user_id' => '14',
 			'created' => '2011-09-23 17:14:57',
@@ -146,7 +146,7 @@ class LogFixture extends CakeTestFixture {
 			'description' => 'Custom action by User "user@user.de" (14).',
 			'change' => '',
 			'model' => 'PrepaidAccount',
-			'foreign_id' => '1',
+			'foreign_key' => '1',
 			'action' => 'deposited (15.00)',
 			'user_id' => '14',
 			'created' => '2011-09-23 17:14:57',