Add new test fixtures
git-svn-id: svn://10.0.0.236/trunk@239634 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
45
mozilla/webtools/partytool/cake/tests/fixtures/article_featureds_tags_fixture.php
vendored
Executable file
45
mozilla/webtools/partytool/cake/tests/fixtures/article_featureds_tags_fixture.php
vendored
Executable file
@@ -0,0 +1,45 @@
|
||||
<?php
|
||||
/* SVN FILE: $Id: article_featureds_tags_fixture.php,v 1.1 2007-11-19 09:18:52 rflint%ryanflint.com Exp $ */
|
||||
/**
|
||||
* Short description for file.
|
||||
*
|
||||
* Long description for file
|
||||
*
|
||||
* PHP versions 4 and 5
|
||||
*
|
||||
* CakePHP(tm) Tests <https://trac.cakephp.org/wiki/Developement/TestSuite>
|
||||
* 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))
|
||||
);
|
||||
}
|
||||
|
||||
?>
|
||||
54
mozilla/webtools/partytool/cake/tests/fixtures/auth_user_fixture.php
vendored
Executable file
54
mozilla/webtools/partytool/cake/tests/fixtures/auth_user_fixture.php
vendored
Executable file
@@ -0,0 +1,54 @@
|
||||
<?php
|
||||
/* SVN FILE: $Id: auth_user_fixture.php,v 1.1 2007-11-19 09:18:52 rflint%ryanflint.com Exp $ */
|
||||
/**
|
||||
* Short description for file.
|
||||
*
|
||||
* Long description for file
|
||||
*
|
||||
* PHP versions 4 and 5
|
||||
*
|
||||
* CakePHP(tm) Tests <https://trac.cakephp.org/wiki/Developement/TestSuite>
|
||||
* 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'),
|
||||
|
||||
);
|
||||
}
|
||||
|
||||
?>
|
||||
52
mozilla/webtools/partytool/cake/tests/fixtures/author_fixture.php
vendored
Executable file
52
mozilla/webtools/partytool/cake/tests/fixtures/author_fixture.php
vendored
Executable file
@@ -0,0 +1,52 @@
|
||||
<?php
|
||||
/* SVN FILE: $Id: author_fixture.php,v 1.1 2007-11-19 09:18:52 rflint%ryanflint.com Exp $ */
|
||||
/**
|
||||
* Short description for file.
|
||||
*
|
||||
* Long description for file
|
||||
*
|
||||
* PHP versions 4 and 5
|
||||
*
|
||||
* CakePHP(tm) Tests <https://trac.cakephp.org/wiki/Developement/TestSuite>
|
||||
* 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'),
|
||||
);
|
||||
}
|
||||
|
||||
?>
|
||||
50
mozilla/webtools/partytool/cake/tests/fixtures/bid_fixture.php
vendored
Executable file
50
mozilla/webtools/partytool/cake/tests/fixtures/bid_fixture.php
vendored
Executable file
@@ -0,0 +1,50 @@
|
||||
<?php
|
||||
/* SVN FILE: $Id: bid_fixture.php,v 1.1 2007-11-19 09:18:52 rflint%ryanflint.com Exp $ */
|
||||
/**
|
||||
* Short description for file.
|
||||
*
|
||||
* Long description for file
|
||||
*
|
||||
* PHP versions 4 and 5
|
||||
*
|
||||
* CakePHP(tm) Tests <https://trac.cakephp.org/wiki/Developement/TestSuite>
|
||||
* 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')
|
||||
);
|
||||
}
|
||||
?>
|
||||
49
mozilla/webtools/partytool/cake/tests/fixtures/device_fixture.php
vendored
Executable file
49
mozilla/webtools/partytool/cake/tests/fixtures/device_fixture.php
vendored
Executable file
@@ -0,0 +1,49 @@
|
||||
<?php
|
||||
/* SVN FILE: $Id: device_fixture.php,v 1.1 2007-11-19 09:18:52 rflint%ryanflint.com Exp $ */
|
||||
/**
|
||||
* Short description for file.
|
||||
*
|
||||
* Long description for file
|
||||
*
|
||||
* PHP versions 4 and 5
|
||||
*
|
||||
* CakePHP(tm) Tests <https://trac.cakephp.org/wiki/Developement/TestSuite>
|
||||
* 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)
|
||||
);
|
||||
}
|
||||
?>
|
||||
45
mozilla/webtools/partytool/cake/tests/fixtures/device_type_category_fixture.php
vendored
Executable file
45
mozilla/webtools/partytool/cake/tests/fixtures/device_type_category_fixture.php
vendored
Executable file
@@ -0,0 +1,45 @@
|
||||
<?php
|
||||
/* SVN FILE: $Id: device_type_category_fixture.php,v 1.1 2007-11-19 09:18:52 rflint%ryanflint.com Exp $ */
|
||||
/**
|
||||
* Short description for file.
|
||||
*
|
||||
* Long description for file
|
||||
*
|
||||
* PHP versions 4 and 5
|
||||
*
|
||||
* CakePHP(tm) Tests <https://trac.cakephp.org/wiki/Developement/TestSuite>
|
||||
* 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')
|
||||
);
|
||||
}
|
||||
?>
|
||||
52
mozilla/webtools/partytool/cake/tests/fixtures/device_type_fixture.php
vendored
Executable file
52
mozilla/webtools/partytool/cake/tests/fixtures/device_type_fixture.php
vendored
Executable file
@@ -0,0 +1,52 @@
|
||||
<?php
|
||||
/* SVN FILE: $Id: device_type_fixture.php,v 1.1 2007-11-19 09:18:52 rflint%ryanflint.com Exp $ */
|
||||
/**
|
||||
* Short description for file.
|
||||
*
|
||||
* Long description for file
|
||||
*
|
||||
* PHP versions 4 and 5
|
||||
*
|
||||
* CakePHP(tm) Tests <https://trac.cakephp.org/wiki/Developement/TestSuite>
|
||||
* 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)
|
||||
);
|
||||
}
|
||||
?>
|
||||
45
mozilla/webtools/partytool/cake/tests/fixtures/document_directory_fixture.php
vendored
Executable file
45
mozilla/webtools/partytool/cake/tests/fixtures/document_directory_fixture.php
vendored
Executable file
@@ -0,0 +1,45 @@
|
||||
<?php
|
||||
/* SVN FILE: $Id: document_directory_fixture.php,v 1.1 2007-11-19 09:18:52 rflint%ryanflint.com Exp $ */
|
||||
/**
|
||||
* Short description for file.
|
||||
*
|
||||
* Long description for file
|
||||
*
|
||||
* PHP versions 4 and 5
|
||||
*
|
||||
* CakePHP(tm) Tests <https://trac.cakephp.org/wiki/Developement/TestSuite>
|
||||
* 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')
|
||||
);
|
||||
}
|
||||
?>
|
||||
46
mozilla/webtools/partytool/cake/tests/fixtures/document_fixture.php
vendored
Executable file
46
mozilla/webtools/partytool/cake/tests/fixtures/document_fixture.php
vendored
Executable file
@@ -0,0 +1,46 @@
|
||||
<?php
|
||||
/* SVN FILE: $Id: document_fixture.php,v 1.1 2007-11-19 09:18:52 rflint%ryanflint.com Exp $ */
|
||||
/**
|
||||
* Short description for file.
|
||||
*
|
||||
* Long description for file
|
||||
*
|
||||
* PHP versions 4 and 5
|
||||
*
|
||||
* CakePHP(tm) Tests <https://trac.cakephp.org/wiki/Developement/TestSuite>
|
||||
* 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')
|
||||
);
|
||||
}
|
||||
?>
|
||||
46
mozilla/webtools/partytool/cake/tests/fixtures/exterior_type_category_fixture.php
vendored
Executable file
46
mozilla/webtools/partytool/cake/tests/fixtures/exterior_type_category_fixture.php
vendored
Executable file
@@ -0,0 +1,46 @@
|
||||
<?php
|
||||
/* SVN FILE: $Id: exterior_type_category_fixture.php,v 1.1 2007-11-19 09:18:52 rflint%ryanflint.com Exp $ */
|
||||
/**
|
||||
* Short description for file.
|
||||
*
|
||||
* Long description for file
|
||||
*
|
||||
* PHP versions 4 and 5
|
||||
*
|
||||
* CakePHP(tm) Tests <https://trac.cakephp.org/wiki/Developement/TestSuite>
|
||||
* 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')
|
||||
);
|
||||
}
|
||||
?>
|
||||
45
mozilla/webtools/partytool/cake/tests/fixtures/feature_set_fixture.php
vendored
Executable file
45
mozilla/webtools/partytool/cake/tests/fixtures/feature_set_fixture.php
vendored
Executable file
@@ -0,0 +1,45 @@
|
||||
<?php
|
||||
/* SVN FILE: $Id: feature_set_fixture.php,v 1.1 2007-11-19 09:18:52 rflint%ryanflint.com Exp $ */
|
||||
/**
|
||||
* Short description for file.
|
||||
*
|
||||
* Long description for file
|
||||
*
|
||||
* PHP versions 4 and 5
|
||||
*
|
||||
* CakePHP(tm) Tests <https://trac.cakephp.org/wiki/Developement/TestSuite>
|
||||
* 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')
|
||||
);
|
||||
}
|
||||
?>
|
||||
49
mozilla/webtools/partytool/cake/tests/fixtures/image_fixture.php
vendored
Executable file
49
mozilla/webtools/partytool/cake/tests/fixtures/image_fixture.php
vendored
Executable file
@@ -0,0 +1,49 @@
|
||||
<?php
|
||||
/* SVN FILE: $Id: image_fixture.php,v 1.1 2007-11-19 09:18:52 rflint%ryanflint.com Exp $ */
|
||||
/**
|
||||
* Short description for file.
|
||||
*
|
||||
* Long description for file
|
||||
*
|
||||
* PHP versions 4 and 5
|
||||
*
|
||||
* CakePHP(tm) Tests <https://trac.cakephp.org/wiki/Developement/TestSuite>
|
||||
* 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')
|
||||
);
|
||||
}
|
||||
?>
|
||||
51
mozilla/webtools/partytool/cake/tests/fixtures/item_fixture.php
vendored
Executable file
51
mozilla/webtools/partytool/cake/tests/fixtures/item_fixture.php
vendored
Executable file
@@ -0,0 +1,51 @@
|
||||
<?php
|
||||
/* SVN FILE: $Id: item_fixture.php,v 1.1 2007-11-19 09:18:52 rflint%ryanflint.com Exp $ */
|
||||
/**
|
||||
* Short description for file.
|
||||
*
|
||||
* Long description for file
|
||||
*
|
||||
* PHP versions 4 and 5
|
||||
*
|
||||
* CakePHP(tm) Tests <https://trac.cakephp.org/wiki/Developement/TestSuite>
|
||||
* 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')
|
||||
);
|
||||
}
|
||||
?>
|
||||
51
mozilla/webtools/partytool/cake/tests/fixtures/items_portfolio_fixture.php
vendored
Executable file
51
mozilla/webtools/partytool/cake/tests/fixtures/items_portfolio_fixture.php
vendored
Executable file
@@ -0,0 +1,51 @@
|
||||
<?php
|
||||
/* SVN FILE: $Id: items_portfolio_fixture.php,v 1.1 2007-11-19 09:18:52 rflint%ryanflint.com Exp $ */
|
||||
/**
|
||||
* Short description for file.
|
||||
*
|
||||
* Long description for file
|
||||
*
|
||||
* PHP versions 4 and 5
|
||||
*
|
||||
* CakePHP(tm) Tests <https://trac.cakephp.org/wiki/Developement/TestSuite>
|
||||
* 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)
|
||||
);
|
||||
}
|
||||
?>
|
||||
48
mozilla/webtools/partytool/cake/tests/fixtures/message_fixture.php
vendored
Executable file
48
mozilla/webtools/partytool/cake/tests/fixtures/message_fixture.php
vendored
Executable file
@@ -0,0 +1,48 @@
|
||||
<?php
|
||||
/* SVN FILE: $Id: message_fixture.php,v 1.1 2007-11-19 09:18:52 rflint%ryanflint.com Exp $ */
|
||||
/**
|
||||
* Short description for file.
|
||||
*
|
||||
* Long description for file
|
||||
*
|
||||
* PHP versions 4 and 5
|
||||
*
|
||||
* CakePHP(tm) Tests <https://trac.cakephp.org/wiki/Developement/TestSuite>
|
||||
* 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')
|
||||
);
|
||||
}
|
||||
?>
|
||||
46
mozilla/webtools/partytool/cake/tests/fixtures/number_tree_fixture.php
vendored
Executable file
46
mozilla/webtools/partytool/cake/tests/fixtures/number_tree_fixture.php
vendored
Executable file
@@ -0,0 +1,46 @@
|
||||
<?php
|
||||
/* SVN FILE: $Id: number_tree_fixture.php,v 1.1 2007-11-19 09:18:52 rflint%ryanflint.com Exp $ */
|
||||
/**
|
||||
* Tree behavior class.
|
||||
*
|
||||
* Enables a model object to act as a node-based tree.
|
||||
*
|
||||
* PHP versions 4 and 5
|
||||
*
|
||||
* CakePHP(tm) Tests <https://trac.cakephp.org/wiki/Developement/TestSuite>
|
||||
* 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));
|
||||
}
|
||||
?>
|
||||
48
mozilla/webtools/partytool/cake/tests/fixtures/portfolio_fixture.php
vendored
Executable file
48
mozilla/webtools/partytool/cake/tests/fixtures/portfolio_fixture.php
vendored
Executable file
@@ -0,0 +1,48 @@
|
||||
<?php
|
||||
/* SVN FILE: $Id: portfolio_fixture.php,v 1.1 2007-11-19 09:18:52 rflint%ryanflint.com Exp $ */
|
||||
/**
|
||||
* Short description for file.
|
||||
*
|
||||
* Long description for file
|
||||
*
|
||||
* PHP versions 4 and 5
|
||||
*
|
||||
* CakePHP(tm) Tests <https://trac.cakephp.org/wiki/Developement/TestSuite>
|
||||
* 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')
|
||||
);
|
||||
}
|
||||
?>
|
||||
52
mozilla/webtools/partytool/cake/tests/fixtures/post_fixture.php
vendored
Executable file
52
mozilla/webtools/partytool/cake/tests/fixtures/post_fixture.php
vendored
Executable file
@@ -0,0 +1,52 @@
|
||||
<?php
|
||||
/* SVN FILE: $Id: post_fixture.php,v 1.1 2007-11-19 09:18:52 rflint%ryanflint.com Exp $ */
|
||||
/**
|
||||
* Short description for file.
|
||||
*
|
||||
* Long description for file
|
||||
*
|
||||
* PHP versions 4 and 5
|
||||
*
|
||||
* CakePHP(tm) Tests <https://trac.cakephp.org/wiki/Developement/TestSuite>
|
||||
* 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')
|
||||
);
|
||||
}
|
||||
?>
|
||||
50
mozilla/webtools/partytool/cake/tests/fixtures/posts_tag_fixture.php
vendored
Executable file
50
mozilla/webtools/partytool/cake/tests/fixtures/posts_tag_fixture.php
vendored
Executable file
@@ -0,0 +1,50 @@
|
||||
<?php
|
||||
/* SVN FILE: $Id: posts_tag_fixture.php,v 1.1 2007-11-19 09:18:52 rflint%ryanflint.com Exp $ */
|
||||
/**
|
||||
* Short description for file.
|
||||
*
|
||||
* Long description for file
|
||||
*
|
||||
* PHP versions 4 and 5
|
||||
*
|
||||
* CakePHP(tm) Tests <https://trac.cakephp.org/wiki/Developement/TestSuite>
|
||||
* 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)
|
||||
);
|
||||
}
|
||||
|
||||
?>
|
||||
47
mozilla/webtools/partytool/cake/tests/fixtures/project_fixture.php
vendored
Executable file
47
mozilla/webtools/partytool/cake/tests/fixtures/project_fixture.php
vendored
Executable file
@@ -0,0 +1,47 @@
|
||||
<?php
|
||||
/* SVN FILE: $Id: project_fixture.php,v 1.1 2007-11-19 09:18:52 rflint%ryanflint.com Exp $ */
|
||||
/**
|
||||
* Short description for file.
|
||||
*
|
||||
* Long description for file
|
||||
*
|
||||
* PHP versions 4 and 5
|
||||
*
|
||||
* CakePHP(tm) Tests <https://trac.cakephp.org/wiki/Developement/TestSuite>
|
||||
* 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')
|
||||
);
|
||||
}
|
||||
?>
|
||||
51
mozilla/webtools/partytool/cake/tests/fixtures/syfile_fixture.php
vendored
Executable file
51
mozilla/webtools/partytool/cake/tests/fixtures/syfile_fixture.php
vendored
Executable file
@@ -0,0 +1,51 @@
|
||||
<?php
|
||||
/* SVN FILE: $Id: syfile_fixture.php,v 1.1 2007-11-19 09:18:52 rflint%ryanflint.com Exp $ */
|
||||
/**
|
||||
* Short description for file.
|
||||
*
|
||||
* Long description for file
|
||||
*
|
||||
* PHP versions 4 and 5
|
||||
*
|
||||
* CakePHP(tm) Tests <https://trac.cakephp.org/wiki/Developement/TestSuite>
|
||||
* 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')
|
||||
);
|
||||
}
|
||||
?>
|
||||
48
mozilla/webtools/partytool/cake/tests/fixtures/thread_fixture.php
vendored
Executable file
48
mozilla/webtools/partytool/cake/tests/fixtures/thread_fixture.php
vendored
Executable file
@@ -0,0 +1,48 @@
|
||||
<?php
|
||||
/* SVN FILE: $Id: thread_fixture.php,v 1.1 2007-11-19 09:18:52 rflint%ryanflint.com Exp $ */
|
||||
/**
|
||||
* Short description for file.
|
||||
*
|
||||
* Long description for file
|
||||
*
|
||||
* PHP versions 4 and 5
|
||||
*
|
||||
* CakePHP(tm) Tests <https://trac.cakephp.org/wiki/Developement/TestSuite>
|
||||
* 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')
|
||||
);
|
||||
}
|
||||
?>
|
||||
65
mozilla/webtools/partytool/cake/tests/fixtures/translate_fixture.php
vendored
Executable file
65
mozilla/webtools/partytool/cake/tests/fixtures/translate_fixture.php
vendored
Executable file
@@ -0,0 +1,65 @@
|
||||
<?php
|
||||
/* SVN FILE: $Id: translate_fixture.php,v 1.1 2007-11-19 09:18:52 rflint%ryanflint.com Exp $ */
|
||||
/**
|
||||
* Short description for file.
|
||||
*
|
||||
* Long description for file
|
||||
*
|
||||
* PHP versions 4 and 5
|
||||
*
|
||||
* CakePHP(tm) Tests <https://trac.cakephp.org/wiki/Developement/TestSuite>
|
||||
* 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'));
|
||||
}
|
||||
?>
|
||||
45
mozilla/webtools/partytool/cake/tests/fixtures/translated_item_fixture.php
vendored
Executable file
45
mozilla/webtools/partytool/cake/tests/fixtures/translated_item_fixture.php
vendored
Executable file
@@ -0,0 +1,45 @@
|
||||
<?php
|
||||
/* SVN FILE: $Id: translated_item_fixture.php,v 1.1 2007-11-19 09:18:52 rflint%ryanflint.com Exp $ */
|
||||
/**
|
||||
* Short description for file.
|
||||
*
|
||||
* Long description for file
|
||||
*
|
||||
* PHP versions 4 and 5
|
||||
*
|
||||
* CakePHP(tm) Tests <https://trac.cakephp.org/wiki/Developement/TestSuite>
|
||||
* 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'));
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user