diff --git a/mozilla/webtools/partytool/cake/tests/fixtures/article_featureds_tags_fixture.php b/mozilla/webtools/partytool/cake/tests/fixtures/article_featureds_tags_fixture.php new file mode 100755 index 00000000000..a51f4d5f386 --- /dev/null +++ b/mozilla/webtools/partytool/cake/tests/fixtures/article_featureds_tags_fixture.php @@ -0,0 +1,45 @@ + + * Copyright 2005-2007, Cake Software Foundation, Inc. + * 1785 E. Sahara Avenue, Suite 490-204 + * Las Vegas, Nevada 89104 + * + * Licensed under The Open Group Test Suite License + * Redistributions of files must retain the above copyright notice. + * + * @filesource + * @copyright Copyright 2005-2007, Cake Software Foundation, Inc. + * @link https://trac.cakephp.org/wiki/Developement/TestSuite CakePHP(tm) Tests + * @package cake.tests + * @subpackage cake.tests.fixtures + * @since CakePHP(tm) v 1.2.0.4667 + * @version $Revision: 1.1 $ + * @modifiedby $LastChangedBy: phpnut $ + * @lastmodified $Date: 2007-11-19 09:18:52 $ + * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License + */ +/** + * Short description for class. + * + * @package cake.tests + * @subpackage cake.tests.fixtures + */ +class ArticleFeaturedsTagsFixture extends CakeTestFixture { + var $name = 'ArticleFeaturedsTags'; + + var $fields = array( + 'article_featured_id' => array('type' => 'integer', 'null' => false), + 'tag_id' => array('type' => 'integer', 'null' => false), + 'indexes' => array('UNIQUE_FEATURED' => array('column'=> array('article_featured_id', 'tag_id'), 'unique'=> 1)) + ); +} + +?> \ No newline at end of file diff --git a/mozilla/webtools/partytool/cake/tests/fixtures/auth_user_fixture.php b/mozilla/webtools/partytool/cake/tests/fixtures/auth_user_fixture.php new file mode 100755 index 00000000000..1297481dbbd --- /dev/null +++ b/mozilla/webtools/partytool/cake/tests/fixtures/auth_user_fixture.php @@ -0,0 +1,54 @@ + + * Copyright 2005-2007, Cake Software Foundation, Inc. + * 1785 E. Sahara Avenue, Suite 490-204 + * Las Vegas, Nevada 89104 + * + * Licensed under The Open Group Test Suite License + * Redistributions of files must retain the above copyright notice. + * + * @filesource + * @copyright Copyright 2005-2007, Cake Software Foundation, Inc. + * @link https://trac.cakephp.org/wiki/Developement/TestSuite CakePHP(tm) Tests + * @package cake.tests + * @subpackage cake.tests.fixtures + * @since CakePHP(tm) v 1.2.0.4667 + * @version $Revision: 1.1 $ + * @modifiedby $LastChangedBy: phpnut $ + * @lastmodified $Date: 2007-11-19 09:18:52 $ + * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License + */ +/** + * Short description for class. + * + * @package cake.tests + * @subpackage cake.tests.fixtures + */ +class AuthUserFixture extends CakeTestFixture { + var $name = 'AuthUser'; + var $fields = array( + 'id' => array('type' => 'integer', 'key' => 'primary', 'extra'=> 'auto_increment'), + 'username' => array('type' => 'string', 'null' => false), + 'password' => array('type' => 'string', 'null' => false), + 'created' => 'datetime', + 'updated' => 'datetime' + ); + var $records = array( + array('id' => 1, 'username' => 'mariano', 'password' => '5f4dcc3b5aa765d61d8327deb882cf99', 'created' => '2007-03-17 01:16:23', 'updated' => '2007-03-17 01:18:31'), + array('id' => 2, 'username' => 'nate', 'password' => '5f4dcc3b5aa765d61d8327deb882cf99', 'created' => '2007-03-17 01:18:23', 'updated' => '2007-03-17 01:20:31'), + array('id' => 3, 'username' => 'larry', 'password' => '5f4dcc3b5aa765d61d8327deb882cf99', 'created' => '2007-03-17 01:20:23', 'updated' => '2007-03-17 01:22:31'), + array('id' => 4, 'username' => 'garrett', 'password' => '5f4dcc3b5aa765d61d8327deb882cf99', 'created' => '2007-03-17 01:22:23', 'updated' => '2007-03-17 01:24:31'), + array('id' => 5, 'username' => 'chartjes', 'password' => '5f4dcc3b5aa765d61d8327deb882cf99', 'created' => '2007-03-17 01:22:23', 'updated' => '2007-03-17 01:24:31'), + + ); +} + +?> \ No newline at end of file diff --git a/mozilla/webtools/partytool/cake/tests/fixtures/author_fixture.php b/mozilla/webtools/partytool/cake/tests/fixtures/author_fixture.php new file mode 100755 index 00000000000..b70dd2eb6d6 --- /dev/null +++ b/mozilla/webtools/partytool/cake/tests/fixtures/author_fixture.php @@ -0,0 +1,52 @@ + + * Copyright 2005-2007, Cake Software Foundation, Inc. + * 1785 E. Sahara Avenue, Suite 490-204 + * Las Vegas, Nevada 89104 + * + * Licensed under The Open Group Test Suite License + * Redistributions of files must retain the above copyright notice. + * + * @filesource + * @copyright Copyright 2005-2007, Cake Software Foundation, Inc. + * @link https://trac.cakephp.org/wiki/Developement/TestSuite CakePHP(tm) Tests + * @package cake.tests + * @subpackage cake.tests.fixtures + * @since CakePHP(tm) v 1.2.0.4667 + * @version $Revision: 1.1 $ + * @modifiedby $LastChangedBy: phpnut $ + * @lastmodified $Date: 2007-11-19 09:18:52 $ + * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License + */ +/** + * Short description for class. + * + * @package cake.tests + * @subpackage cake.tests.fixtures + */ +class AuthorFixture extends CakeTestFixture { + var $name = 'Author'; + var $fields = array( + 'id' => array('type' => 'integer', 'key' => 'primary', 'extra'=> 'auto_increment'), + 'user' => array('type' => 'string', 'null' => false), + 'password' => array('type' => 'string', 'null' => false), + 'created' => 'datetime', + 'updated' => 'datetime' + ); + var $records = array( + array('id' => 1, 'user' => 'mariano', 'password' => '5f4dcc3b5aa765d61d8327deb882cf99', 'created' => '2007-03-17 01:16:23', 'updated' => '2007-03-17 01:18:31'), + array('id' => 2, 'user' => 'nate', 'password' => '5f4dcc3b5aa765d61d8327deb882cf99', 'created' => '2007-03-17 01:18:23', 'updated' => '2007-03-17 01:20:31'), + array('id' => 3, 'user' => 'larry', 'password' => '5f4dcc3b5aa765d61d8327deb882cf99', 'created' => '2007-03-17 01:20:23', 'updated' => '2007-03-17 01:22:31'), + array('id' => 4, 'user' => 'garrett', 'password' => '5f4dcc3b5aa765d61d8327deb882cf99', 'created' => '2007-03-17 01:22:23', 'updated' => '2007-03-17 01:24:31'), + ); +} + +?> \ No newline at end of file diff --git a/mozilla/webtools/partytool/cake/tests/fixtures/bid_fixture.php b/mozilla/webtools/partytool/cake/tests/fixtures/bid_fixture.php new file mode 100755 index 00000000000..b2b73d5c733 --- /dev/null +++ b/mozilla/webtools/partytool/cake/tests/fixtures/bid_fixture.php @@ -0,0 +1,50 @@ + + * Copyright 2005-2007, Cake Software Foundation, Inc. + * 1785 E. Sahara Avenue, Suite 490-204 + * Las Vegas, Nevada 89104 + * + * Licensed under The Open Group Test Suite License + * Redistributions of files must retain the above copyright notice. + * + * @filesource + * @copyright Copyright 2005-2007, Cake Software Foundation, Inc. + * @link https://trac.cakephp.org/wiki/Developement/TestSuite CakePHP(tm) Tests + * @package cake.tests + * @subpackage cake.tests.fixtures + * @since CakePHP(tm) v 1.2.0.4667 + * @version $Revision: 1.1 $ + * @modifiedby $LastChangedBy: phpnut $ + * @lastmodified $Date: 2007-11-19 09:18:52 $ + * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License + */ +/** + * Short description for class. + * + * @package cake.tests + * @subpackage cake.tests.fixtures + */ +class BidFixture extends CakeTestFixture { + var $name = 'Bid'; + var $fields = array( + 'id' => array('type' => 'integer', 'key' => 'primary', 'extra'=> 'auto_increment'), + 'message_id' => array('type' => 'integer', 'null' => false), + 'name' => array('type' => 'string', 'null' => false) + ); + var $records = array( + array ('id' => 1, 'message_id' => 1, 'name' => 'Bid 1.1'), + array ('id' => 2, 'message_id' => 1, 'name' => 'Bid 1.2'), + array ('id' => 3, 'message_id' => 3, 'name' => 'Bid 3.1'), + array ('id' => 4, 'message_id' => 2, 'name' => 'Bid 2.1'), + array ('id' => 5, 'message_id' => 2, 'name' => 'Bid 2.2') + ); +} +?> \ No newline at end of file diff --git a/mozilla/webtools/partytool/cake/tests/fixtures/device_fixture.php b/mozilla/webtools/partytool/cake/tests/fixtures/device_fixture.php new file mode 100755 index 00000000000..91cebfcec57 --- /dev/null +++ b/mozilla/webtools/partytool/cake/tests/fixtures/device_fixture.php @@ -0,0 +1,49 @@ + + * Copyright 2005-2007, Cake Software Foundation, Inc. + * 1785 E. Sahara Avenue, Suite 490-204 + * Las Vegas, Nevada 89104 + * + * Licensed under The Open Group Test Suite License + * Redistributions of files must retain the above copyright notice. + * + * @filesource + * @copyright Copyright 2005-2007, Cake Software Foundation, Inc. + * @link https://trac.cakephp.org/wiki/Developement/TestSuite CakePHP(tm) Tests + * @package cake.tests + * @subpackage cake.tests.fixtures + * @since CakePHP(tm) v 1.2.0.4667 + * @version $Revision: 1.1 $ + * @modifiedby $LastChangedBy: phpnut $ + * @lastmodified $Date: 2007-11-19 09:18:52 $ + * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License + */ +/** + * Short description for class. + * + * @package cake.tests + * @subpackage cake.tests.fixtures + */ +class DeviceFixture extends CakeTestFixture { + var $name = 'Device'; + var $fields = array( + 'id' => array('type' => 'integer', 'key' => 'primary', 'extra'=> 'auto_increment'), + 'device_type_id' => array('type' => 'integer', 'null' => false), + 'name' => array('type' => 'string', 'null' => false), + 'typ' => array('type' => 'integer', 'null' => false), + ); + var $records = array( + array('id' => 1, 'device_type_id' => 1, 'name' => 'Device 1', 'typ' => 1), + array('id' => 2, 'device_type_id' => 1, 'name' => 'Device 2', 'typ' => 1), + array('id' => 3, 'device_type_id' => 1, 'name' => 'Device 3', 'typ' => 2) + ); +} +?> \ No newline at end of file diff --git a/mozilla/webtools/partytool/cake/tests/fixtures/device_type_category_fixture.php b/mozilla/webtools/partytool/cake/tests/fixtures/device_type_category_fixture.php new file mode 100755 index 00000000000..6fd1a3f8008 --- /dev/null +++ b/mozilla/webtools/partytool/cake/tests/fixtures/device_type_category_fixture.php @@ -0,0 +1,45 @@ + + * Copyright 2005-2007, Cake Software Foundation, Inc. + * 1785 E. Sahara Avenue, Suite 490-204 + * Las Vegas, Nevada 89104 + * + * Licensed under The Open Group Test Suite License + * Redistributions of files must retain the above copyright notice. + * + * @filesource + * @copyright Copyright 2005-2007, Cake Software Foundation, Inc. + * @link https://trac.cakephp.org/wiki/Developement/TestSuite CakePHP(tm) Tests + * @package cake.tests + * @subpackage cake.tests.fixtures + * @since CakePHP(tm) v 1.2.0.4667 + * @version $Revision: 1.1 $ + * @modifiedby $LastChangedBy: phpnut $ + * @lastmodified $Date: 2007-11-19 09:18:52 $ + * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License + */ +/** + * Short description for class. + * + * @package cake.tests + * @subpackage cake.tests.fixtures + */ +class DeviceTypeCategoryFixture extends CakeTestFixture { + var $name = 'DeviceTypeCategory'; + var $fields = array( + 'id' => array('type' => 'integer', 'key' => 'primary', 'extra'=> 'auto_increment'), + 'name' => array('type' => 'string', 'null' => false) + ); + var $records = array( + array('id' => 1, 'name' => 'DeviceTypeCategory 1') + ); +} +?> \ No newline at end of file diff --git a/mozilla/webtools/partytool/cake/tests/fixtures/device_type_fixture.php b/mozilla/webtools/partytool/cake/tests/fixtures/device_type_fixture.php new file mode 100755 index 00000000000..27e94e43312 --- /dev/null +++ b/mozilla/webtools/partytool/cake/tests/fixtures/device_type_fixture.php @@ -0,0 +1,52 @@ + + * Copyright 2005-2007, Cake Software Foundation, Inc. + * 1785 E. Sahara Avenue, Suite 490-204 + * Las Vegas, Nevada 89104 + * + * Licensed under The Open Group Test Suite License + * Redistributions of files must retain the above copyright notice. + * + * @filesource + * @copyright Copyright 2005-2007, Cake Software Foundation, Inc. + * @link https://trac.cakephp.org/wiki/Developement/TestSuite CakePHP(tm) Tests + * @package cake.tests + * @subpackage cake.tests.fixtures + * @since CakePHP(tm) v 1.2.0.4667 + * @version $Revision: 1.1 $ + * @modifiedby $LastChangedBy: phpnut $ + * @lastmodified $Date: 2007-11-19 09:18:52 $ + * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License + */ +/** + * Short description for class. + * + * @package cake.tests + * @subpackage cake.tests.fixtures + */ +class DeviceTypeFixture extends CakeTestFixture { + var $name = 'DeviceType'; + var $fields = array( + 'id' => array('type' => 'integer', 'key' => 'primary', 'extra'=> 'auto_increment'), + 'device_type_category_id' => array('type' => 'integer', 'null' => false), + 'feature_set_id' => array('type' => 'integer', 'null' => false), + 'exterior_type_category_id' => array('type' => 'integer', 'null' => false), + 'image_id' => array('type' => 'integer', 'null' => false), + 'extra1_id' => array('type' => 'integer', 'null' => false), + 'extra2_id' => array('type' => 'integer', 'null' => false), + 'name' => array('type' => 'string', 'null' => false), + 'order' => array('type' => 'integer', 'null' => false) + ); + var $records = array( + array('id' => 1, 'device_type_category_id' => 1, 'feature_set_id' => 1, 'exterior_type_category_id' => 1, 'image_id' => 1, 'extra1_id' => 1, 'extra2_id' => 1, 'name' => 'DeviceType 1', 'order' => 0) + ); +} +?> \ No newline at end of file diff --git a/mozilla/webtools/partytool/cake/tests/fixtures/document_directory_fixture.php b/mozilla/webtools/partytool/cake/tests/fixtures/document_directory_fixture.php new file mode 100755 index 00000000000..35ee52fe6e1 --- /dev/null +++ b/mozilla/webtools/partytool/cake/tests/fixtures/document_directory_fixture.php @@ -0,0 +1,45 @@ + + * Copyright 2005-2007, Cake Software Foundation, Inc. + * 1785 E. Sahara Avenue, Suite 490-204 + * Las Vegas, Nevada 89104 + * + * Licensed under The Open Group Test Suite License + * Redistributions of files must retain the above copyright notice. + * + * @filesource + * @copyright Copyright 2005-2007, Cake Software Foundation, Inc. + * @link https://trac.cakephp.org/wiki/Developement/TestSuite CakePHP(tm) Tests + * @package cake.tests + * @subpackage cake.tests.fixtures + * @since CakePHP(tm) v 1.2.0.4667 + * @version $Revision: 1.1 $ + * @modifiedby $LastChangedBy: phpnut $ + * @lastmodified $Date: 2007-11-19 09:18:52 $ + * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License + */ +/** + * Short description for class. + * + * @package cake.tests + * @subpackage cake.tests.fixtures + */ +class DocumentDirectoryFixture extends CakeTestFixture { + var $name = 'DocumentDirectory'; + var $fields = array( + 'id' => array('type' => 'integer', 'key' => 'primary', 'extra'=> 'auto_increment'), + 'name' => array('type' => 'string', 'null' => false) + ); + var $records = array( + array('id' => 1, 'name' => 'DocumentDirectory 1') + ); +} +?> \ No newline at end of file diff --git a/mozilla/webtools/partytool/cake/tests/fixtures/document_fixture.php b/mozilla/webtools/partytool/cake/tests/fixtures/document_fixture.php new file mode 100755 index 00000000000..dc7a56b8c42 --- /dev/null +++ b/mozilla/webtools/partytool/cake/tests/fixtures/document_fixture.php @@ -0,0 +1,46 @@ + + * Copyright 2005-2007, Cake Software Foundation, Inc. + * 1785 E. Sahara Avenue, Suite 490-204 + * Las Vegas, Nevada 89104 + * + * Licensed under The Open Group Test Suite License + * Redistributions of files must retain the above copyright notice. + * + * @filesource + * @copyright Copyright 2005-2007, Cake Software Foundation, Inc. + * @link https://trac.cakephp.org/wiki/Developement/TestSuite CakePHP(tm) Tests + * @package cake.tests + * @subpackage cake.tests.fixtures + * @since CakePHP(tm) v 1.2.0.4667 + * @version $Revision: 1.1 $ + * @modifiedby $LastChangedBy: phpnut $ + * @lastmodified $Date: 2007-11-19 09:18:52 $ + * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License + */ +/** + * Short description for class. + * + * @package cake.tests + * @subpackage cake.tests.fixtures + */ +class DocumentFixture extends CakeTestFixture { + var $name = 'Document'; + var $fields = array( + 'id' => array('type' => 'integer', 'key' => 'primary', 'extra'=> 'auto_increment'), + 'document_directory_id' => array('type' => 'integer', 'null' => false), + 'name' => array('type' => 'string', 'null' => false) + ); + var $records = array( + array('id' => 1, 'document_directory_id' => 1, 'name' => 'Document 1') + ); +} +?> \ No newline at end of file diff --git a/mozilla/webtools/partytool/cake/tests/fixtures/exterior_type_category_fixture.php b/mozilla/webtools/partytool/cake/tests/fixtures/exterior_type_category_fixture.php new file mode 100755 index 00000000000..7adf91efc0b --- /dev/null +++ b/mozilla/webtools/partytool/cake/tests/fixtures/exterior_type_category_fixture.php @@ -0,0 +1,46 @@ + + * Copyright 2005-2007, Cake Software Foundation, Inc. + * 1785 E. Sahara Avenue, Suite 490-204 + * Las Vegas, Nevada 89104 + * + * Licensed under The Open Group Test Suite License + * Redistributions of files must retain the above copyright notice. + * + * @filesource + * @copyright Copyright 2005-2007, Cake Software Foundation, Inc. + * @link https://trac.cakephp.org/wiki/Developement/TestSuite CakePHP(tm) Tests + * @package cake.tests + * @subpackage cake.tests.fixtures + * @since CakePHP(tm) v 1.2.0.4667 + * @version $Revision: 1.1 $ + * @modifiedby $LastChangedBy: phpnut $ + * @lastmodified $Date: 2007-11-19 09:18:52 $ + * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License + */ +/** + * Short description for class. + * + * @package cake.tests + * @subpackage cake.tests.fixtures + */ +class ExteriorTypeCategoryFixture extends CakeTestFixture { + var $name = 'ExteriorTypeCategory'; + var $fields = array( + 'id' => array('type' => 'integer', 'key' => 'primary', 'extra'=> 'auto_increment'), + 'image_id' => array('type' => 'integer', 'null' => false), + 'name' => array('type' => 'string', 'null' => false) + ); + var $records = array( + array('id' => 1, 'image_id' => 1, 'name' => 'ExteriorTypeCategory 1') + ); +} +?> \ No newline at end of file diff --git a/mozilla/webtools/partytool/cake/tests/fixtures/feature_set_fixture.php b/mozilla/webtools/partytool/cake/tests/fixtures/feature_set_fixture.php new file mode 100755 index 00000000000..b426b164631 --- /dev/null +++ b/mozilla/webtools/partytool/cake/tests/fixtures/feature_set_fixture.php @@ -0,0 +1,45 @@ + + * Copyright 2005-2007, Cake Software Foundation, Inc. + * 1785 E. Sahara Avenue, Suite 490-204 + * Las Vegas, Nevada 89104 + * + * Licensed under The Open Group Test Suite License + * Redistributions of files must retain the above copyright notice. + * + * @filesource + * @copyright Copyright 2005-2007, Cake Software Foundation, Inc. + * @link https://trac.cakephp.org/wiki/Developement/TestSuite CakePHP(tm) Tests + * @package cake.tests + * @subpackage cake.tests.fixtures + * @since CakePHP(tm) v 1.2.0.4667 + * @version $Revision: 1.1 $ + * @modifiedby $LastChangedBy: phpnut $ + * @lastmodified $Date: 2007-11-19 09:18:52 $ + * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License + */ +/** + * Short description for class. + * + * @package cake.tests + * @subpackage cake.tests.fixtures + */ +class FeatureSetFixture extends CakeTestFixture { + var $name = 'FeatureSet'; + var $fields = array( + 'id' => array('type' => 'integer', 'key' => 'primary', 'extra'=> 'auto_increment'), + 'name' => array('type' => 'string', 'null' => false) + ); + var $records = array( + array('id' => 1, 'name' => 'FeatureSet 1') + ); +} +?> \ No newline at end of file diff --git a/mozilla/webtools/partytool/cake/tests/fixtures/image_fixture.php b/mozilla/webtools/partytool/cake/tests/fixtures/image_fixture.php new file mode 100755 index 00000000000..a6c2d1fb90a --- /dev/null +++ b/mozilla/webtools/partytool/cake/tests/fixtures/image_fixture.php @@ -0,0 +1,49 @@ + + * Copyright 2005-2007, Cake Software Foundation, Inc. + * 1785 E. Sahara Avenue, Suite 490-204 + * Las Vegas, Nevada 89104 + * + * Licensed under The Open Group Test Suite License + * Redistributions of files must retain the above copyright notice. + * + * @filesource + * @copyright Copyright 2005-2007, Cake Software Foundation, Inc. + * @link https://trac.cakephp.org/wiki/Developement/TestSuite CakePHP(tm) Tests + * @package cake.tests + * @subpackage cake.tests.fixtures + * @since CakePHP(tm) v 1.2.0.4667 + * @version $Revision: 1.1 $ + * @modifiedby $LastChangedBy: phpnut $ + * @lastmodified $Date: 2007-11-19 09:18:52 $ + * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License + */ +/** + * Short description for class. + * + * @package cake.tests + * @subpackage cake.tests.fixtures + */ +class ImageFixture extends CakeTestFixture { + var $name = 'Image'; + var $fields = array( + 'id' => array('type' => 'integer', 'key' => 'primary', 'extra'=> 'auto_increment'), + 'name' => array('type' => 'string', 'null' => false) + ); + var $records = array( + array ('id' => 1, 'name' => 'Image 1'), + array ('id' => 2, 'name' => 'Image 2'), + array ('id' => 3, 'name' => 'Image 3'), + array ('id' => 4, 'name' => 'Image 4'), + array ('id' => 5, 'name' => 'Image 5') + ); +} +?> \ No newline at end of file diff --git a/mozilla/webtools/partytool/cake/tests/fixtures/item_fixture.php b/mozilla/webtools/partytool/cake/tests/fixtures/item_fixture.php new file mode 100755 index 00000000000..1260e635ac7 --- /dev/null +++ b/mozilla/webtools/partytool/cake/tests/fixtures/item_fixture.php @@ -0,0 +1,51 @@ + + * Copyright 2005-2007, Cake Software Foundation, Inc. + * 1785 E. Sahara Avenue, Suite 490-204 + * Las Vegas, Nevada 89104 + * + * Licensed under The Open Group Test Suite License + * Redistributions of files must retain the above copyright notice. + * + * @filesource + * @copyright Copyright 2005-2007, Cake Software Foundation, Inc. + * @link https://trac.cakephp.org/wiki/Developement/TestSuite CakePHP(tm) Tests + * @package cake.tests + * @subpackage cake.tests.fixtures + * @since CakePHP(tm) v 1.2.0.4667 + * @version $Revision: 1.1 $ + * @modifiedby $LastChangedBy: phpnut $ + * @lastmodified $Date: 2007-11-19 09:18:52 $ + * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License + */ +/** + * Short description for class. + * + * @package cake.tests + * @subpackage cake.tests.fixtures + */ +class ItemFixture extends CakeTestFixture { + var $name = 'Item'; + var $fields = array( + 'id' => array('type' => 'integer', 'key' => 'primary', 'extra'=> 'auto_increment'), + 'syfile_id' => array('type' => 'integer', 'null' => false), + 'name' => array('type' => 'string', 'null' => false) + ); + var $records = array( + array ('id' => 1, 'syfile_id' => 1, 'name' => 'Item 1'), + array ('id' => 2, 'syfile_id' => 2, 'name' => 'Item 2'), + array ('id' => 3, 'syfile_id' => 3, 'name' => 'Item 3'), + array ('id' => 4, 'syfile_id' => 4, 'name' => 'Item 4'), + array ('id' => 5, 'syfile_id' => 5, 'name' => 'Item 5'), + array ('id' => 6, 'syfile_id' => 6, 'name' => 'Item 6') + ); +} +?> \ No newline at end of file diff --git a/mozilla/webtools/partytool/cake/tests/fixtures/items_portfolio_fixture.php b/mozilla/webtools/partytool/cake/tests/fixtures/items_portfolio_fixture.php new file mode 100755 index 00000000000..9f74043442d --- /dev/null +++ b/mozilla/webtools/partytool/cake/tests/fixtures/items_portfolio_fixture.php @@ -0,0 +1,51 @@ + + * Copyright 2005-2007, Cake Software Foundation, Inc. + * 1785 E. Sahara Avenue, Suite 490-204 + * Las Vegas, Nevada 89104 + * + * Licensed under The Open Group Test Suite License + * Redistributions of files must retain the above copyright notice. + * + * @filesource + * @copyright Copyright 2005-2007, Cake Software Foundation, Inc. + * @link https://trac.cakephp.org/wiki/Developement/TestSuite CakePHP(tm) Tests + * @package cake.tests + * @subpackage cake.tests.fixtures + * @since CakePHP(tm) v 1.2.0.4667 + * @version $Revision: 1.1 $ + * @modifiedby $LastChangedBy: phpnut $ + * @lastmodified $Date: 2007-11-19 09:18:52 $ + * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License + */ +/** + * Short description for class. + * + * @package cake.tests + * @subpackage cake.tests.fixtures + */ +class ItemsPortfolioFixture extends CakeTestFixture { + var $name = 'ItemsPortfolio'; + var $fields = array( + 'id' => array('type' => 'integer', 'key' => 'primary', 'extra'=> 'auto_increment'), + 'item_id' => array('type' => 'integer', 'null' => false), + 'portfolio_id' => array('type' => 'integer', 'null' => false) + ); + var $records = array( + array ('id' => 1, 'item_id' => 1, 'portfolio_id' => 1), + array ('id' => 2, 'item_id' => 2, 'portfolio_id' => 2), + array ('id' => 3, 'item_id' => 3, 'portfolio_id' => 1), + array ('id' => 4, 'item_id' => 4, 'portfolio_id' => 1), + array ('id' => 5, 'item_id' => 5, 'portfolio_id' => 1), + array ('id' => 6, 'item_id' => 6, 'portfolio_id' => 2) + ); +} +?> \ No newline at end of file diff --git a/mozilla/webtools/partytool/cake/tests/fixtures/message_fixture.php b/mozilla/webtools/partytool/cake/tests/fixtures/message_fixture.php new file mode 100755 index 00000000000..9d786e5d057 --- /dev/null +++ b/mozilla/webtools/partytool/cake/tests/fixtures/message_fixture.php @@ -0,0 +1,48 @@ + + * Copyright 2005-2007, Cake Software Foundation, Inc. + * 1785 E. Sahara Avenue, Suite 490-204 + * Las Vegas, Nevada 89104 + * + * Licensed under The Open Group Test Suite License + * Redistributions of files must retain the above copyright notice. + * + * @filesource + * @copyright Copyright 2005-2007, Cake Software Foundation, Inc. + * @link https://trac.cakephp.org/wiki/Developement/TestSuite CakePHP(tm) Tests + * @package cake.tests + * @subpackage cake.tests.fixtures + * @since CakePHP(tm) v 1.2.0.4667 + * @version $Revision: 1.1 $ + * @modifiedby $LastChangedBy: phpnut $ + * @lastmodified $Date: 2007-11-19 09:18:52 $ + * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License + */ +/** + * Short description for class. + * + * @package cake.tests + * @subpackage cake.tests.fixtures + */ +class MessageFixture extends CakeTestFixture { + var $name = 'Message'; + var $fields = array( + 'id' => array('type' => 'integer', 'key' => 'primary', 'extra'=> 'auto_increment'), + 'thread_id' => array('type' => 'integer', 'null' => false), + 'name' => array('type' => 'string', 'null' => false) + ); + var $records = array( + array ('id' => 1, 'thread_id' => 1, 'name' => 'Thread 1, Message 1'), + array ('id' => 2, 'thread_id' => 2, 'name' => 'Thread 2, Message 1'), + array ('id' => 3, 'thread_id' => 3, 'name' => 'Thread 3, Message 1') + ); +} +?> \ No newline at end of file diff --git a/mozilla/webtools/partytool/cake/tests/fixtures/number_tree_fixture.php b/mozilla/webtools/partytool/cake/tests/fixtures/number_tree_fixture.php new file mode 100755 index 00000000000..de12142d981 --- /dev/null +++ b/mozilla/webtools/partytool/cake/tests/fixtures/number_tree_fixture.php @@ -0,0 +1,46 @@ + + * Copyright 2005-2007, Cake Software Foundation, Inc. + * 1785 E. Sahara Avenue, Suite 490-204 + * Las Vegas, Nevada 89104 + * + * Licensed under The Open Group Test Suite License + * Redistributions of files must retain the above copyright notice. + * + * @filesource + * @copyright Copyright 2005-2007, Cake Software Foundation, Inc. + * @link https://trac.cakephp.org/wiki/Developement/TestSuite CakePHP(tm) Tests + * @package cake.tests + * @subpackage cake.tests.fixtures + * @since CakePHP(tm) v 1.2.0.5331 + * @version $Revision: 1.1 $ + * @modifiedby $LastChangedBy: phpnut $ + * @lastmodified $Date: 2007-11-19 09:18:52 $ + * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License + */ +/** + * Number Tree Test Fixture + * + * Generates a tree of data for use testing the tree behavior + * + * @package cake + * @subpackage cake.tests.fixtures + */ +class NumberTreeFixture extends CakeTestFixture { + var $name = 'NumberTree'; + var $fields = array ( 'id' => array ( + 'type' => 'integer','key' => 'primary', 'extra'=> 'auto_increment'), + 'name' => array ('type' => 'string','null' => false), + 'parent_id' => 'integer', + 'lft' => array ('type' => 'integer','null' => false), + 'rght' => array ('type' => 'integer','null' => false)); +} +?> \ No newline at end of file diff --git a/mozilla/webtools/partytool/cake/tests/fixtures/portfolio_fixture.php b/mozilla/webtools/partytool/cake/tests/fixtures/portfolio_fixture.php new file mode 100755 index 00000000000..acb22c7f40c --- /dev/null +++ b/mozilla/webtools/partytool/cake/tests/fixtures/portfolio_fixture.php @@ -0,0 +1,48 @@ + + * Copyright 2005-2007, Cake Software Foundation, Inc. + * 1785 E. Sahara Avenue, Suite 490-204 + * Las Vegas, Nevada 89104 + * + * Licensed under The Open Group Test Suite License + * Redistributions of files must retain the above copyright notice. + * + * @filesource + * @copyright Copyright 2005-2007, Cake Software Foundation, Inc. + * @link https://trac.cakephp.org/wiki/Developement/TestSuite CakePHP(tm) Tests + * @package cake.tests + * @subpackage cake.tests.fixtures + * @since CakePHP(tm) v 1.2.0.4667 + * @version $Revision: 1.1 $ + * @modifiedby $LastChangedBy: phpnut $ + * @lastmodified $Date: 2007-11-19 09:18:52 $ + * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License + */ +/** + * Short description for class. + * + * @package cake.tests + * @subpackage cake.tests.fixtures + */ +class PortfolioFixture extends CakeTestFixture { + var $name = 'Portfolio'; + var $fields = array( + 'id' => array('type' => 'integer', 'key' => 'primary', 'extra'=> 'auto_increment'), + 'seller_id' => array('type' => 'integer', 'null' => false), + 'name' => array('type' => 'string', 'null' => false) + ); + var $records = array( + array ('id' => 1, 'seller_id' => 1, 'name' => 'Portfolio 1'), + array ('id' => 2, 'seller_id' => 1, 'name' => 'Portfolio 2'), + array ('id' => 3, 'seller_id' => 2, 'name' => 'Portfolio 1') + ); +} +?> \ No newline at end of file diff --git a/mozilla/webtools/partytool/cake/tests/fixtures/post_fixture.php b/mozilla/webtools/partytool/cake/tests/fixtures/post_fixture.php new file mode 100755 index 00000000000..5ec72b7170c --- /dev/null +++ b/mozilla/webtools/partytool/cake/tests/fixtures/post_fixture.php @@ -0,0 +1,52 @@ + + * Copyright 2005-2007, Cake Software Foundation, Inc. + * 1785 E. Sahara Avenue, Suite 490-204 + * Las Vegas, Nevada 89104 + * + * Licensed under The Open Group Test Suite License + * Redistributions of files must retain the above copyright notice. + * + * @filesource + * @copyright Copyright 2005-2007, Cake Software Foundation, Inc. + * @link https://trac.cakephp.org/wiki/Developement/TestSuite CakePHP(tm) Tests + * @package cake.tests + * @subpackage cake.tests.fixtures + * @since CakePHP(tm) v 1.2.0.4667 + * @version $Revision: 1.1 $ + * @modifiedby $LastChangedBy: phpnut $ + * @lastmodified $Date: 2007-11-19 09:18:52 $ + * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License + */ +/** + * Short description for class. + * + * @package cake.tests + * @subpackage cake.tests.fixtures + */ +class PostFixture extends CakeTestFixture { + var $name = 'Post'; + var $fields = array( + 'id' => array('type' => 'integer', 'key' => 'primary', 'extra'=> 'auto_increment'), + 'author_id' => array('type' => 'integer', 'null' => false), + 'title' => array('type' => 'string', 'null' => false), + 'body' => 'text', + 'published' => array('type' => 'string', 'length' => 1, 'default' => 'N'), + 'created' => 'datetime', + 'updated' => 'datetime' + ); + var $records = array( + array ('id' => 1, 'author_id' => 1, 'title' => 'First Post', 'body' => 'First Post Body', 'published' => 'Y', 'created' => '2007-03-18 10:39:23', 'updated' => '2007-03-18 10:41:31'), + array ('id' => 2, 'author_id' => 3, 'title' => 'Second Post', 'body' => 'Second Post Body', 'published' => 'Y', 'created' => '2007-03-18 10:41:23', 'updated' => '2007-03-18 10:43:31'), + array ('id' => 3, 'author_id' => 1, 'title' => 'Third Post', 'body' => 'Third Post Body', 'published' => 'Y', 'created' => '2007-03-18 10:43:23', 'updated' => '2007-03-18 10:45:31') + ); +} +?> \ No newline at end of file diff --git a/mozilla/webtools/partytool/cake/tests/fixtures/posts_tag_fixture.php b/mozilla/webtools/partytool/cake/tests/fixtures/posts_tag_fixture.php new file mode 100755 index 00000000000..247b34166bc --- /dev/null +++ b/mozilla/webtools/partytool/cake/tests/fixtures/posts_tag_fixture.php @@ -0,0 +1,50 @@ + + * Copyright 2005-2007, Cake Software Foundation, Inc. + * 1785 E. Sahara Avenue, Suite 490-204 + * Las Vegas, Nevada 89104 + * + * Licensed under The Open Group Test Suite License + * Redistributions of files must retain the above copyright notice. + * + * @filesource + * @copyright Copyright 2005-2007, Cake Software Foundation, Inc. + * @link https://trac.cakephp.org/wiki/Developement/TestSuite CakePHP(tm) Tests + * @package cake.tests + * @subpackage cake.tests.fixtures + * @since CakePHP(tm) v 1.2.0.4667 + * @version $Revision: 1.1 $ + * @modifiedby $LastChangedBy: phpnut $ + * @lastmodified $Date: 2007-11-19 09:18:52 $ + * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License + */ +/** + * Short description for class. + * + * @package cake.tests + * @subpackage cake.tests.fixtures + */ +class PostsTagFixture extends CakeTestFixture { + var $name = 'PostsTag'; + var $fields = array( + 'post_id' => array('type' => 'integer', 'null' => false), + 'tag_id' => array('type' => 'integer', 'null' => false), + 'indexes' => array('UNIQUE_TAG' => array('column'=> array('post_id', 'tag_id'), 'unique'=> 1)) + ); + var $records = array( + array('post_id' => 1, 'tag_id' => 1), + array('post_id' => 1, 'tag_id' => 2), + array('post_id' => 2, 'tag_id' => 1), + array('post_id' => 2, 'tag_id' => 3) + ); +} + +?> \ No newline at end of file diff --git a/mozilla/webtools/partytool/cake/tests/fixtures/project_fixture.php b/mozilla/webtools/partytool/cake/tests/fixtures/project_fixture.php new file mode 100755 index 00000000000..60a8cdede44 --- /dev/null +++ b/mozilla/webtools/partytool/cake/tests/fixtures/project_fixture.php @@ -0,0 +1,47 @@ + + * Copyright 2005-2007, Cake Software Foundation, Inc. + * 1785 E. Sahara Avenue, Suite 490-204 + * Las Vegas, Nevada 89104 + * + * Licensed under The Open Group Test Suite License + * Redistributions of files must retain the above copyright notice. + * + * @filesource + * @copyright Copyright 2005-2007, Cake Software Foundation, Inc. + * @link https://trac.cakephp.org/wiki/Developement/TestSuite CakePHP(tm) Tests + * @package cake.tests + * @subpackage cake.tests.fixtures + * @since CakePHP(tm) v 1.2.0.4667 + * @version $Revision: 1.1 $ + * @modifiedby $LastChangedBy: phpnut $ + * @lastmodified $Date: 2007-11-19 09:18:52 $ + * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License + */ +/** + * Short description for class. + * + * @package cake.tests + * @subpackage cake.tests.fixtures + */ +class ProjectFixture extends CakeTestFixture { + var $name = 'Project'; + var $fields = array( + 'id' => array('type' => 'integer', 'key' => 'primary', 'extra'=> 'auto_increment'), + 'name' => array('type' => 'string', 'null' => false) + ); + var $records = array( + array ('id' => 1, 'name' => 'Project 1'), + array ('id' => 2, 'name' => 'Project 2'), + array ('id' => 3, 'name' => 'Project 3') + ); +} +?> \ No newline at end of file diff --git a/mozilla/webtools/partytool/cake/tests/fixtures/syfile_fixture.php b/mozilla/webtools/partytool/cake/tests/fixtures/syfile_fixture.php new file mode 100755 index 00000000000..6cf79854e03 --- /dev/null +++ b/mozilla/webtools/partytool/cake/tests/fixtures/syfile_fixture.php @@ -0,0 +1,51 @@ + + * Copyright 2005-2007, Cake Software Foundation, Inc. + * 1785 E. Sahara Avenue, Suite 490-204 + * Las Vegas, Nevada 89104 + * + * Licensed under The Open Group Test Suite License + * Redistributions of files must retain the above copyright notice. + * + * @filesource + * @copyright Copyright 2005-2007, Cake Software Foundation, Inc. + * @link https://trac.cakephp.org/wiki/Developement/TestSuite CakePHP(tm) Tests + * @package cake.tests + * @subpackage cake.tests.fixtures + * @since CakePHP(tm) v 1.2.0.4667 + * @version $Revision: 1.1 $ + * @modifiedby $LastChangedBy: phpnut $ + * @lastmodified $Date: 2007-11-19 09:18:52 $ + * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License + */ +/** + * Short description for class. + * + * @package cake.tests + * @subpackage cake.tests.fixtures + */ +class SyfileFixture extends CakeTestFixture { + var $name = 'Syfile'; + var $fields = array( + 'id' => array('type' => 'integer', 'key' => 'primary', 'extra'=> 'auto_increment'), + 'image_id' => array('type' => 'integer', 'null' => true), + 'name' => array('type' => 'string', 'null' => false) + ); + var $records = array( + array ('id' => 1, 'image_id' => 1, 'name' => 'Syfile 1'), + array ('id' => 2, 'image_id' => 2, 'name' => 'Syfile 2'), + array ('id' => 3, 'image_id' => 5, 'name' => 'Syfile 3'), + array ('id' => 4, 'image_id' => 3, 'name' => 'Syfile 4'), + array ('id' => 5, 'image_id' => 4, 'name' => 'Syfile 5'), + array ('id' => 6, 'image_id' => null, 'name' => 'Syfile 6') + ); +} +?> \ No newline at end of file diff --git a/mozilla/webtools/partytool/cake/tests/fixtures/thread_fixture.php b/mozilla/webtools/partytool/cake/tests/fixtures/thread_fixture.php new file mode 100755 index 00000000000..5ebc0dc2051 --- /dev/null +++ b/mozilla/webtools/partytool/cake/tests/fixtures/thread_fixture.php @@ -0,0 +1,48 @@ + + * Copyright 2005-2007, Cake Software Foundation, Inc. + * 1785 E. Sahara Avenue, Suite 490-204 + * Las Vegas, Nevada 89104 + * + * Licensed under The Open Group Test Suite License + * Redistributions of files must retain the above copyright notice. + * + * @filesource + * @copyright Copyright 2005-2007, Cake Software Foundation, Inc. + * @link https://trac.cakephp.org/wiki/Developement/TestSuite CakePHP(tm) Tests + * @package cake.tests + * @subpackage cake.tests.fixtures + * @since CakePHP(tm) v 1.2.0.4667 + * @version $Revision: 1.1 $ + * @modifiedby $LastChangedBy: phpnut $ + * @lastmodified $Date: 2007-11-19 09:18:52 $ + * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License + */ +/** + * Short description for class. + * + * @package cake.tests + * @subpackage cake.tests.fixtures + */ +class ThreadFixture extends CakeTestFixture { + var $name = 'Thread'; + var $fields = array( + 'id' => array('type' => 'integer', 'key' => 'primary', 'extra'=> 'auto_increment'), + 'project_id' => array('type' => 'integer', 'null' => false), + 'name' => array('type' => 'string', 'null' => false) + ); + var $records = array( + array ('id' => 1, 'project_id' => 1, 'name' => 'Project 1, Thread 1'), + array ('id' => 2, 'project_id' => 1, 'name' => 'Project 1, Thread 2'), + array ('id' => 3, 'project_id' => 2, 'name' => 'Project 2, Thread 1') + ); +} +?> \ No newline at end of file diff --git a/mozilla/webtools/partytool/cake/tests/fixtures/translate_fixture.php b/mozilla/webtools/partytool/cake/tests/fixtures/translate_fixture.php new file mode 100755 index 00000000000..84d6599dfe4 --- /dev/null +++ b/mozilla/webtools/partytool/cake/tests/fixtures/translate_fixture.php @@ -0,0 +1,65 @@ + + * Copyright 2005-2007, Cake Software Foundation, Inc. + * 1785 E. Sahara Avenue, Suite 490-204 + * Las Vegas, Nevada 89104 + * + * Licensed under The Open Group Test Suite License + * Redistributions of files must retain the above copyright notice. + * + * @filesource + * @copyright Copyright 2005-2007, Cake Software Foundation, Inc. + * @link https://trac.cakephp.org/wiki/Developement/TestSuite CakePHP(tm) Tests + * @package cake.tests + * @subpackage cake.tests.fixtures + * @since CakePHP(tm) v 1.2.0.5669 + * @version $Revision: 1.1 $ + * @modifiedby $LastChangedBy: phpnut $ + * @lastmodified $Date: 2007-11-19 09:18:52 $ + * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License + */ +/** + * Short description for class. + * + * @package cake.tests + * @subpackage cake.tests.fixtures + */ +class TranslateFixture extends CakeTestFixture { + var $name = 'Translate'; + var $table = 'i18n'; + var $fields = array( + 'id' => array('type' => 'integer', 'key' => 'primary', 'extra'=> 'auto_increment'), + 'locale' => array('type' => 'string', 'length' => 6, 'null' => false), + 'model' => array('type' => 'string', 'null' => false), + 'foreign_key' => array('type' => 'integer', 'null' => false), + 'field' => array('type' => 'string', 'null' => false), + 'content' => array('type' => 'text')); + var $records = array( + array('id' => 1, 'locale' => 'eng', 'model' => 'TranslatedItem', 'foreign_key' => 1, 'field' => 'title', 'content' => 'Title #1'), + array('id' => 2, 'locale' => 'eng', 'model' => 'TranslatedItem', 'foreign_key' => 1, 'field' => 'content', 'content' => 'Content #1'), + array('id' => 3, 'locale' => 'deu', 'model' => 'TranslatedItem', 'foreign_key' => 1, 'field' => 'title', 'content' => 'Titel #1'), + array('id' => 4, 'locale' => 'deu', 'model' => 'TranslatedItem', 'foreign_key' => 1, 'field' => 'content', 'content' => 'Inhalt #1'), + array('id' => 5, 'locale' => 'cze', 'model' => 'TranslatedItem', 'foreign_key' => 1, 'field' => 'title', 'content' => 'Titulek #1'), + array('id' => 6, 'locale' => 'cze', 'model' => 'TranslatedItem', 'foreign_key' => 1, 'field' => 'content', 'content' => 'Obsah #1'), + array('id' => 7, 'locale' => 'eng', 'model' => 'TranslatedItem', 'foreign_key' => 2, 'field' => 'title', 'content' => 'Title #2'), + array('id' => 8, 'locale' => 'eng', 'model' => 'TranslatedItem', 'foreign_key' => 2, 'field' => 'content', 'content' => 'Content #2'), + array('id' => 9, 'locale' => 'deu', 'model' => 'TranslatedItem', 'foreign_key' => 2, 'field' => 'title', 'content' => 'Titel #2'), + array('id' => 10, 'locale' => 'deu', 'model' => 'TranslatedItem', 'foreign_key' => 2, 'field' => 'content', 'content' => 'Inhalt #2'), + array('id' => 11, 'locale' => 'cze', 'model' => 'TranslatedItem', 'foreign_key' => 2, 'field' => 'title', 'content' => 'Titulek #2'), + array('id' => 12, 'locale' => 'cze', 'model' => 'TranslatedItem', 'foreign_key' => 2, 'field' => 'content', 'content' => 'Obsah #2'), + array('id' => 13, 'locale' => 'eng', 'model' => 'TranslatedItem', 'foreign_key' => 3, 'field' => 'title', 'content' => 'Title #3'), + array('id' => 14, 'locale' => 'eng', 'model' => 'TranslatedItem', 'foreign_key' => 3, 'field' => 'content', 'content' => 'Content #3'), + array('id' => 15, 'locale' => 'deu', 'model' => 'TranslatedItem', 'foreign_key' => 3, 'field' => 'title', 'content' => 'Titel #3'), + array('id' => 16, 'locale' => 'deu', 'model' => 'TranslatedItem', 'foreign_key' => 3, 'field' => 'content', 'content' => 'Inhalt #3'), + array('id' => 17, 'locale' => 'cze', 'model' => 'TranslatedItem', 'foreign_key' => 3, 'field' => 'title', 'content' => 'Titulek #3'), + array('id' => 18, 'locale' => 'cze', 'model' => 'TranslatedItem', 'foreign_key' => 3, 'field' => 'content', 'content' => 'Obsah #3')); +} +?> \ No newline at end of file diff --git a/mozilla/webtools/partytool/cake/tests/fixtures/translated_item_fixture.php b/mozilla/webtools/partytool/cake/tests/fixtures/translated_item_fixture.php new file mode 100755 index 00000000000..08aab3ac04f --- /dev/null +++ b/mozilla/webtools/partytool/cake/tests/fixtures/translated_item_fixture.php @@ -0,0 +1,45 @@ + + * Copyright 2005-2007, Cake Software Foundation, Inc. + * 1785 E. Sahara Avenue, Suite 490-204 + * Las Vegas, Nevada 89104 + * + * Licensed under The Open Group Test Suite License + * Redistributions of files must retain the above copyright notice. + * + * @filesource + * @copyright Copyright 2005-2007, Cake Software Foundation, Inc. + * @link https://trac.cakephp.org/wiki/Developement/TestSuite CakePHP(tm) Tests + * @package cake.tests + * @subpackage cake.tests.fixtures + * @since CakePHP(tm) v 1.2.0.5669 + * @version $Revision: 1.1 $ + * @modifiedby $LastChangedBy: phpnut $ + * @lastmodified $Date: 2007-11-19 09:18:52 $ + * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License + */ +/** + * Short description for class. + * + * @package cake.tests + * @subpackage cake.tests.fixtures + */ +class TranslatedItemFixture extends CakeTestFixture { + var $name = 'TranslatedItem'; + var $fields = array( + 'id' => array('type' => 'integer', 'key' => 'primary', 'extra'=> 'auto_increment'), + 'slug' => array('type' => 'string', 'null' => false)); + var $records = array( + array('id' => 1, 'slug' => 'first_translated'), + array('id' => 2, 'slug' => 'second_translated'), + array('id' => 3, 'slug' => 'third_translated')); +} +?> \ No newline at end of file