removing 'id' from fixtures (lh ticket 2296)

This commit is contained in:
Rachman Chavik 2011-11-25 20:03:58 +07:00
parent 1677e87512
commit 6874e4904e
5 changed files with 22 additions and 22 deletions

View file

@ -13,7 +13,7 @@
* @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
* @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
* @package Cake.Test.Fixture * @package Cake.Test.Fixture
* @since CakePHP(tm) v 1.2.0.4667 * @since CakePHP(tm) v 2.1
* @license MIT License (http://www.opensource.org/licenses/mit-license.php) * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/ */
@ -58,9 +58,9 @@ class ArmorFixture extends CakeTestFixture {
* @var array * @var array
*/ */
public $records = array( public $records = array(
array('id' => 1, 'name' => 'Leather', 'created' => '2007-03-17 01:16:23'), array('name' => 'Leather', 'created' => '2007-03-17 01:16:23'),
array('id' => 2, 'name' => 'Chainmail', 'created' => '2007-03-17 01:18:23'), array('name' => 'Chainmail', 'created' => '2007-03-17 01:18:23'),
array('id' => 3, 'name' => 'Cloak', 'created' => '2007-03-17 01:20:23'), array('name' => 'Cloak', 'created' => '2007-03-17 01:20:23'),
array('id' => 4, 'name' => 'Bikini', 'created' => '2007-03-17 01:22:23'), array('name' => 'Bikini', 'created' => '2007-03-17 01:22:23'),
); );
} }

View file

@ -13,7 +13,7 @@
* @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
* @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
* @package Cake.Test.Fixture * @package Cake.Test.Fixture
* @since CakePHP(tm) v 1.2.0.4667 * @since CakePHP(tm) v 2.1
* @license MIT License (http://www.opensource.org/licenses/mit-license.php) * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/ */
@ -60,8 +60,8 @@ class ArmorsPlayerFixture extends CakeTestFixture {
* @var array * @var array
*/ */
public $records = array( public $records = array(
array('id' => 1, 'player_id' => 1, 'armor_id' => 1, 'broken' => false), array('player_id' => 1, 'armor_id' => 1, 'broken' => false),
array('id' => 2, 'player_id' => 2, 'armor_id' => 2, 'broken' => false), array('player_id' => 2, 'armor_id' => 2, 'broken' => false),
array('id' => 3, 'player_id' => 3, 'armor_id' => 3, 'broken' => false), array('player_id' => 3, 'armor_id' => 3, 'broken' => false),
); );
} }

View file

@ -13,7 +13,7 @@
* @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
* @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
* @package Cake.Test.Fixture * @package Cake.Test.Fixture
* @since CakePHP(tm) v 1.2.0.4667 * @since CakePHP(tm) v 2.1
* @license MIT License (http://www.opensource.org/licenses/mit-license.php) * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/ */
@ -47,8 +47,8 @@ class GuildFixture extends CakeTestFixture {
* @var array * @var array
*/ */
public $records = array( public $records = array(
array('id' => 1, 'name' => 'Warriors'), array('name' => 'Warriors'),
array('id' => 2, 'name' => 'Rangers'), array('name' => 'Rangers'),
array('id' => 3, 'name' => 'Wizards'), array('name' => 'Wizards'),
); );
} }

View file

@ -13,7 +13,7 @@
* @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
* @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
* @package Cake.Test.Fixture * @package Cake.Test.Fixture
* @since CakePHP(tm) v 1.2.0.4667 * @since CakePHP(tm) v 2.1
* @license MIT License (http://www.opensource.org/licenses/mit-license.php) * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/ */
@ -50,8 +50,8 @@ class GuildsPlayerFixture extends CakeTestFixture {
* @var array * @var array
*/ */
public $records = array( public $records = array(
array('id' => 1, 'player_id' => 1, 'guild_id' => 1), array('player_id' => 1, 'guild_id' => 1),
array('id' => 2, 'player_id' => 1, 'guild_id' => 2), array('player_id' => 1, 'guild_id' => 2),
array('id' => 3, 'player_id' => 4, 'guild_id' => 3), array('player_id' => 4, 'guild_id' => 3),
); );
} }

View file

@ -13,7 +13,7 @@
* @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
* @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
* @package Cake.Test.Fixture * @package Cake.Test.Fixture
* @since CakePHP(tm) v 1.2.0.4667 * @since CakePHP(tm) v 2.1
* @license MIT License (http://www.opensource.org/licenses/mit-license.php) * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/ */
@ -49,9 +49,9 @@ class PlayerFixture extends CakeTestFixture {
* @var array * @var array
*/ */
public $records = array( public $records = array(
array('id' => 1, 'name' => 'mark', 'created' => '2007-03-17 01:16:23'), array('name' => 'mark', 'created' => '2007-03-17 01:16:23'),
array('id' => 2, 'name' => 'jack', 'created' => '2007-03-17 01:18:23'), array('name' => 'jack', 'created' => '2007-03-17 01:18:23'),
array('id' => 3, 'name' => 'larry', 'created' => '2007-03-17 01:20:23'), array('name' => 'larry', 'created' => '2007-03-17 01:20:23'),
array('id' => 4, 'name' => 'jose', 'created' => '2007-03-17 01:22:23'), array('name' => 'jose', 'created' => '2007-03-17 01:22:23'),
); );
} }