code
stringlengths
1
2.01M
repo_name
stringlengths
3
62
path
stringlengths
1
267
language
stringclasses
231 values
license
stringclasses
13 values
size
int64
1
2.01M
<?php /** * Test App Comment Model * * * * PHP 5 * * CakePHP : Rapid Development Framework (http://cakephp.org) * Copyright 2005-2011, Cake Software Foundation, Inc. * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice. * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. * @link http://cakephp.org CakePHP Project * @package Cake.Test.test_app.Model * @since CakePHP v 1.2.0.7726 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ class PersisterOne extends AppModel { public $useTable = 'posts'; public $name = 'PersisterOne'; public $actsAs = array('PersisterOneBehavior', 'TestPlugin.TestPluginPersisterOne'); public $hasMany = array('Comment', 'TestPlugin.TestPluginComment'); public $validate = array( 'title' => array( 'custom' => array( 'rule' => array('custom', '.*'), 'allowEmpty' => true, 'required' => false, 'message' => 'Post title is required' ), 'between' => array( 'rule' => array('between', 5, 15), 'message' => array('You may enter up to %s chars (minimum is %s chars)', 14, 6) ) ), 'body' => array( 'first_rule' => array( 'rule' => array('custom', '.*'), 'allowEmpty' => true, 'required' => false, 'message' => 'Post body is required' ), 'second_rule' => array( 'rule' => array('custom', '.*'), 'allowEmpty' => true, 'required' => false, 'message' => 'Post body is super required' ) ), ); }
0001-bee
trunk/cakephp2/lib/Cake/Test/test_app/Model/PersisterOne.php
PHP
gpl3
1,549
<?php /** * Test App Comment Model * * * * PHP 5 * * CakePHP : Rapid Development Framework (http://cakephp.org) * Copyright 2005-2011, Cake Software Foundation, Inc. * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice. * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. * @link http://cakephp.org CakePHP Project * @package Cake.Test.test_app.Model * @since CakePHP v 1.2.0.7726 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ class Post extends AppModel { public $useTable = 'posts'; public $name = 'Post'; }
0001-bee
trunk/cakephp2/lib/Cake/Test/test_app/Model/Post.php
PHP
gpl3
659
<?php /** * Behavior for binding management. * * Behavior to simplify manipulating a model's bindings when doing a find operation * * PHP 5 * * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice. * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://cakephp.org CakePHP(tm) Project * @package Cake.Test.test_app.Model.Behavior * @since CakePHP(tm) v 1.2.0.5669 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ /** * Behavior to allow for dynamic and atomic manipulation of a Model's associations used for a find call. Most useful for limiting * the amount of associations and data returned. * * @package Cake.Test.test_app.Model.Behavior */ class PersisterOneBehaviorBehavior extends ModelBehavior { }
0001-bee
trunk/cakephp2/lib/Cake/Test/test_app/Model/Behavior/PersisterOneBehaviorBehavior.php
PHP
gpl3
1,046
<?php /** * Behavior for binding management. * * Behavior to simplify manipulating a model's bindings when doing a find operation * * PHP 5 * * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice. * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://cakephp.org CakePHP(tm) Project * @package Cake.Test.test_app.Model.Behavior * @since CakePHP(tm) v 1.2.0.5669 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ /** * Behavior to allow for dynamic and atomic manipulation of a Model's associations used for a find call. Most useful for limiting * the amount of associations and data returned. * * @package Cake.Test.test_app.Model.Behavior */ class PersisterTwoBehaviorBehavior extends ModelBehavior { }
0001-bee
trunk/cakephp2/lib/Cake/Test/test_app/Model/Behavior/PersisterTwoBehaviorBehavior.php
PHP
gpl3
1,046
<?php /** * Test App Comment Model * * * * PHP 5 * * CakePHP : Rapid Development Framework (http://cakephp.org) * Copyright 2005-2011, Cake Software Foundation, Inc. * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice. * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. * @link http://cakephp.org CakePHP Project * @package Cake.Test.test_app.Model * @since CakePHP v 1.2.0.7726 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ class Comment extends AppModel { public $useTable = 'comments'; public $name = 'Comment'; }
0001-bee
trunk/cakephp2/lib/Cake/Test/test_app/Model/Comment.php
PHP
gpl3
668
<?php /** * Test suite app/Model/Datasource/Session session handler * */ class TestAppLibSession implements CakeSessionHandlerInterface { public function open() { return true; } public function close() { } public function read($id) { } public function write($id, $data) { } public function destroy($id) { } public function gc($expires = null) { } }
0001-bee
trunk/cakephp2/lib/Cake/Test/test_app/Model/Datasource/Session/TestAppLibSession.php
PHP
gpl3
386
<?php App::uses('TestSource', 'TestPlugin.Model/Datasource'); class TestLocalDriver extends TestSource { }
0001-bee
trunk/cakephp2/lib/Cake/Test/test_app/Model/Datasource/Database/TestLocalDriver.php
PHP
gpl3
108
<?php class Test2OtherSource extends DataSource { public function describe($model) { return compact('model'); } public function listSources() { return array('test_source'); } public function create($model, $fields = array(), $values = array()) { return compact('model', 'fields', 'values'); } public function read($model, $queryData = array()) { return compact('model', 'queryData'); } public function update($model, $fields = array(), $values = array()) { return compact('model', 'fields', 'values'); } public function delete($model, $id) { return compact('model', 'id'); } }
0001-bee
trunk/cakephp2/lib/Cake/Test/test_app/Model/Datasource/Test2OtherSource.php
PHP
gpl3
607
<?php class Test2Source extends DataSource { public function describe($model) { return compact('model'); } public function listSources() { return array('test_source'); } public function create($model, $fields = array(), $values = array()) { return compact('model', 'fields', 'values'); } public function read($model, $queryData = array()) { return compact('model', 'queryData'); } public function update($model, $fields = array(), $values = array()) { return compact('model', 'fields', 'values'); } public function delete($model, $id) { return compact('model', 'id'); } }
0001-bee
trunk/cakephp2/lib/Cake/Test/test_app/Model/Datasource/Test2Source.php
PHP
gpl3
602
<?php /** * Test App Comment Model * * * * PHP 5 * * CakePHP : Rapid Development Framework (http://cakephp.org) * Copyright 2005-2011, Cake Software Foundation, Inc. * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice. * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. * @link http://cakephp.org CakePHP Project * @package Cake.Test.test_app.Model * @since CakePHP v 1.2.0.7726 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ class PersisterTwo extends AppModel { public $useTable = 'posts'; public $name = 'PersisterTwo'; public $actsAs = array('PersisterOneBehavior', 'TestPlugin.TestPluginPersisterOne'); public $hasMany = array('Comment', 'TestPlugin.TestPluginComment'); }
0001-bee
trunk/cakephp2/lib/Cake/Test/test_app/Model/PersisterTwo.php
PHP
gpl3
832
<?php /** * Short description for file. * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ /** * Short description for class. * * @package Cake.Test.Fixture */ class MyProductFixture extends CakeTestFixture { /** * name property * * @var string 'MyProduct' */ public $name = 'MyProduct'; /** * fields property * * @var array */ public $fields = array( 'id' => array('type' => 'integer', 'key' => 'primary'), 'name' => array('type' => 'string', 'null' => false), ); /** * records property * * @var array */ public $records = array( array('id' => 1, 'name' => 'book'), array('id' => 2, 'name' => 'computer'), ); }
0001-bee
trunk/cakephp2/lib/Cake/Test/Fixture/MyProductFixture.php
PHP
gpl3
1,213
<?php /** * Short description for file. * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.5669 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ /** * Short description for class. * * @package Cake.Test.Fixture */ class TranslateTableFixture extends CakeTestFixture { /** * name property * * @var string 'TranslateTable' */ public $name = 'TranslateTable'; /** * table property * * @var string 'another_i18n' */ public $table = 'another_i18n'; /** * fields property * * @var array */ public $fields = array( 'id' => array('type' => 'integer', 'key' => 'primary'), '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')); /** * records property * * @var array */ public $records = array( array('locale' => 'eng', 'model' => 'TranslatedItemWithTable', 'foreign_key' => 1, 'field' => 'title', 'content' => 'Another Title #1'), array('locale' => 'eng', 'model' => 'TranslatedItemWithTable', 'foreign_key' => 1, 'field' => 'content', 'content' => 'Another Content #1') ); }
0001-bee
trunk/cakephp2/lib/Cake/Test/Fixture/TranslateTableFixture.php
PHP
gpl3
1,760
<?php /** * Short description for file. * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.7953 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ /** * Short description for class. * * @package Cake.Test.Fixture */ class UuidTagFixture extends CakeTestFixture { /** * name property * * @var string 'UuidTag' */ public $name = 'UuidTag'; /** * fields property * * @var array */ public $fields = array( 'id' => array('type' => 'string', 'length' => 36, 'key' => 'primary'), 'name' => array('type' => 'string', 'length' => 255), 'created' => array('type' => 'datetime') ); /** * records property * * @var array */ public $records = array( array('id' => '481fc6d0-b920-43e0-e50f-6d1740cf8569', 'name' => 'MyTag', 'created' => '2009-12-09 12:30:00') ); }
0001-bee
trunk/cakephp2/lib/Cake/Test/Fixture/UuidTagFixture.php
PHP
gpl3
1,295
<?php /** * Short description for file. * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ /** * Short description for class. * * @package Cake.Test.Fixture */ class MyUserFixture extends CakeTestFixture { /** * name property * * @var string 'MyUser' */ public $name = 'MyUser'; /** * fields property * * @var array */ public $fields = array( 'id' => array('type' => 'integer', 'key' => 'primary'), 'firstname' => array('type' => 'string', 'null' => false), ); /** * records property * * @var array */ public $records = array( array('id' => 1, 'firstname' => 'userA'), array('id' => 2, 'firstname' => 'userB') ); }
0001-bee
trunk/cakephp2/lib/Cake/Test/Fixture/MyUserFixture.php
PHP
gpl3
1,216
<?php /** * Short description for file. * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ /** * Short description for class. * * @package Cake.Test.Fixture */ class PrimaryModelFixture extends CakeTestFixture { /** * name property * * @var string 'PrimaryModel' */ public $name = 'PrimaryModel'; /** * fields property * * @var array */ public $fields = array( 'id' => array('type' => 'integer', 'key' => 'primary'), 'primary_name' => array('type' => 'string', 'null' => false) ); /** * records property * * @var array */ public $records = array( array('primary_name' => 'Primary Name Existing') ); }
0001-bee
trunk/cakephp2/lib/Cake/Test/Fixture/PrimaryModelFixture.php
PHP
gpl3
1,200
<?php /** * Short description for file. * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.6317 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ /** * Short description for class. * * @package Cake.Test.Fixture */ class JoinBFixture extends CakeTestFixture { /** * name property * * @var string 'JoinB' */ public $name = 'JoinB'; /** * fields property * * @var array */ public $fields = array( 'id' => array('type' => 'integer', 'key' => 'primary'), 'name' => array('type' => 'string', 'default' => ''), 'created' => array('type' => 'datetime', 'null' => true), 'updated' => array('type' => 'datetime', 'null' => true) ); /** * records property * * @var array */ public $records = array( array('name' => 'Join B 1', 'created' => '2008-01-03 10:55:01', 'updated' => '2008-01-03 10:55:01'), array('name' => 'Join B 2', 'created' => '2008-01-03 10:55:02', 'updated' => '2008-01-03 10:55:02'), array('name' => 'Join B 3', 'created' => '2008-01-03 10:55:03', 'updated' => '2008-01-03 10:55:03') ); }
0001-bee
trunk/cakephp2/lib/Cake/Test/Fixture/JoinBFixture.php
PHP
gpl3
1,548
<?php /** * Short description for file. * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ /** * UnderscoreFieldFixture class * * @package Cake.Test.Fixture */ class UnderscoreFieldFixture extends CakeTestFixture { /** * name property * * @var string 'UnderscoreField' */ public $name = 'UnderscoreField'; /** * fields property * * @var array */ public $fields = array( 'id' => array('type' => 'integer', 'key' => 'primary'), 'user_id' => array('type' => 'integer', 'null' => false), 'my_model_has_a_field' => array('type' => 'string', 'null' => false), 'body_field' => 'text', 'published' => array('type' => 'string', 'length' => 1, 'default' => 'N'), 'another_field' => array('type' => 'integer', 'length' => 3), ); /** * records property * * @var array */ public $records = array( array('user_id' => 1, 'my_model_has_a_field' => 'First Article', 'body_field' => 'First Article Body', 'published' => 'Y', 'another_field' => 2), array('user_id' => 3, 'my_model_has_a_field' => 'Second Article', 'body_field' => 'Second Article Body', 'published' => 'Y', 'another_field' => 3), array('user_id' => 1, 'my_model_has_a_field' => 'Third Article', 'body_field' => 'Third Article Body', 'published' => 'Y', 'another_field' => 5), ); }
0001-bee
trunk/cakephp2/lib/Cake/Test/Fixture/UnderscoreFieldFixture.php
PHP
gpl3
1,841
<?php /** * BakeArticleFixture * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 2.0 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ /** * Short description for class. * * @package Cake.Test.Fixture */ class BakeArticleFixture extends CakeTestFixture { /** * name property * * @var string */ public $name = 'BakeArticle'; /** * fields property * * @var array */ public $fields = array( 'id' => array('type' => 'integer', 'key' => 'primary'), 'bake_user_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' ); /** * records property * * @var array */ public $records = array(); }
0001-bee
trunk/cakephp2/lib/Cake/Test/Fixture/BakeArticleFixture.php
PHP
gpl3
1,323
<?php /** * Short description for file. * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ /** * Short description for class. * * @package Cake.Test.Fixture */ class CacheTestModelFixture extends CakeTestFixture { /** * name property * * @var string 'CacheTestModel' */ public $name = 'CacheTestModel'; /** * fields property * * @var array */ public $fields = array( 'id' => array('type' => 'string', 'length' => 255, 'key' => 'primary'), 'data' => array('type' => 'string', 'length' => 255, 'default' => ''), 'expires' => array('type' => 'integer', 'length' => 10, 'default' => '0'), ); }
0001-bee
trunk/cakephp2/lib/Cake/Test/Fixture/CacheTestModelFixture.php
PHP
gpl3
1,184
<?php /** * Short description for file. * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ /** * Short description for class. * * @package Cake.Test.Fixture */ class StoryFixture extends CakeTestFixture { /** * name property * * @var string 'Story' */ public $name = 'Story'; /** * fields property * * @var array */ public $fields = array( 'story' => array('type' => 'integer', 'key' => 'primary'), 'title' => array('type' => 'string', 'null' => false) ); /** * records property * * @var array */ public $records = array( array('title' => 'First Story'), array('title' => 'Second Story') ); }
0001-bee
trunk/cakephp2/lib/Cake/Test/Fixture/StoryFixture.php
PHP
gpl3
1,194
<?php /** * Short description for file. * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ /** * Short description for class. * * @package Cake.Test.Fixture */ class MessageFixture extends CakeTestFixture { /** * name property * * @var string 'Message' */ public $name = 'Message'; /** * fields property * * @var array */ public $fields = array( 'id' => array('type' => 'integer', 'key' => 'primary'), 'thread_id' => array('type' => 'integer', 'null' => false), 'name' => array('type' => 'string', 'null' => false) ); /** * records property * * @var array */ public $records = array( array('thread_id' => 1, 'name' => 'Thread 1, Message 1'), array('thread_id' => 2, 'name' => 'Thread 2, Message 1'), array('thread_id' => 3, 'name' => 'Thread 3, Message 1') ); }
0001-bee
trunk/cakephp2/lib/Cake/Test/Fixture/MessageFixture.php
PHP
gpl3
1,367
<?php /** * Short description for file. * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ /** * Short description for class. * * @package Cake.Test.Fixture */ class SecondaryModelFixture extends CakeTestFixture { /** * name property * * @var string 'SecondaryModel' */ public $name = 'SecondaryModel'; /** * fields property * * @var array */ public $fields = array( 'id' => array('type' => 'integer', 'key' => 'primary'), 'secondary_name' => array('type' => 'string', 'null' => false) ); /** * records property * * @var array */ public $records = array( array('secondary_name' => 'Secondary Name Existing') ); }
0001-bee
trunk/cakephp2/lib/Cake/Test/Fixture/SecondaryModelFixture.php
PHP
gpl3
1,212
<?php /** * Short description for file. * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ /** * Short description for class. * * @package Cake.Test.Fixture */ class ArosAcoTwoFixture extends CakeTestFixture { /** * name property * * @var string 'ArosAcoTwo' */ public $name = 'ArosAcoTwo'; /** * fields property * * @var array */ public $fields = array( 'id' => array('type' => 'integer', 'key' => 'primary'), 'aro_id' => array('type' => 'integer', 'length' => 10, 'null' => false), 'aco_id' => array('type' => 'integer', 'length' => 10, 'null' => false), '_create' => array('type' => 'string', 'length' => 2, 'default' => 0), '_read' => array('type' => 'string', 'length' => 2, 'default' => 0), '_update' => array('type' => 'string', 'length' => 2, 'default' => 0), '_delete' => array('type' => 'string', 'length' => 2, 'default' => 0) ); /** * records property * * @var array */ public $records = array( array('aro_id' => '1', 'aco_id' => '1', '_create' => '-1', '_read' => '-1', '_update' => '-1', '_delete' => '-1'), array('aro_id' => '2', 'aco_id' => '1', '_create' => '0', '_read' => '1', '_update' => '1', '_delete' => '1'), array('aro_id' => '3', 'aco_id' => '2', '_create' => '0', '_read' => '1', '_update' => '0', '_delete' => '0'), array('aro_id' => '4', 'aco_id' => '2', '_create' => '1', '_read' => '1', '_update' => '0', '_delete' => '-1'), array('aro_id' => '4', 'aco_id' => '6', '_create' => '1', '_read' => '1', '_update' => '0', '_delete' => '0'), array('aro_id' => '5', 'aco_id' => '1', '_create' => '1', '_read' => '1', '_update' => '1', '_delete' => '1'), array('aro_id' => '6', 'aco_id' => '3', '_create' => '-1', '_read' => '1', '_update' => '-1', '_delete' => '-1'), array('aro_id' => '6', 'aco_id' => '4', '_create' => '-1', '_read' => '1', '_update' => '-1', '_delete' => '1'), array('aro_id' => '6', 'aco_id' => '6', '_create' => '-1', '_read' => '1', '_update' => '1', '_delete' => '-1'), array('aro_id' => '7', 'aco_id' => '2', '_create' => '-1', '_read' => '-1', '_update' => '-1', '_delete' => '-1'), array('aro_id' => '7', 'aco_id' => '7', '_create' => '1', '_read' => '1', '_update' => '1', '_delete' => '0'), array('aro_id' => '7', 'aco_id' => '8', '_create' => '1', '_read' => '1', '_update' => '1', '_delete' => '0'), array('aro_id' => '7', 'aco_id' => '9', '_create' => '1', '_read' => '1', '_update' => '1', '_delete' => '1'), array('aro_id' => '7', 'aco_id' => '10', '_create' => '0', '_read' => '0', '_update' => '0', '_delete' => '1'), array('aro_id' => '8', 'aco_id' => '10', '_create' => '1', '_read' => '1', '_update' => '1', '_delete' => '1'), array('aro_id' => '8', 'aco_id' => '2', '_create' => '-1', '_read' => '-1', '_update' => '-1', '_delete' => '-1'), array('aro_id' => '9', 'aco_id' => '4', '_create' => '1', '_read' => '1', '_update' => '1', '_delete' => '-1'), array('aro_id' => '9', 'aco_id' => '9', '_create' => '0', '_read' => '0', '_update' => '1', '_delete' => '1'), array('aro_id' => '10', 'aco_id' => '9', '_create' => '1', '_read' => '1', '_update' => '1', '_delete' => '1'), array('aro_id' => '10', 'aco_id' => '10', '_create' => '-1', '_read' => '-1', '_update' => '-1', '_delete' => '-1'), ); }
0001-bee
trunk/cakephp2/lib/Cake/Test/Fixture/ArosAcoTwoFixture.php
PHP
gpl3
3,829
<?php /** * Short description for file. * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ /** * Short description for class. * * @package Cake.Test.Fixture */ class FilmFileFixture extends CakeTestFixture { /** * name property * * @var string 'FilmFile' */ public $name = 'FilmFile'; /** * fields property * * @var array */ public $fields = array( 'id' => array('type' => 'integer', 'key' => 'primary'), 'name' => array('type' => 'string', 'length' => 255) ); /** * records property * * @var array */ public $records = array( array('id' => 1, 'name' => 'one'), array('id' => 2, 'name' => 'two') ); }
0001-bee
trunk/cakephp2/lib/Cake/Test/Fixture/FilmFileFixture.php
PHP
gpl3
1,202
<?php /* SVN FILE: $Id$ */ /** * Short description for file. * * Long description for file * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.5669 * @version $Revision$ * @modifiedby $LastChangedBy$ * @lastmodified $Date$ * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ /** * Short description for class. * * @package Cake.Test.Fixture */ class TranslateWithPrefixFixture extends CakeTestFixture { /** * name property * * @var string 'Translate' */ public $name = 'TranslateWithPrefix'; /** * table property * * @var string 'i18n' */ public $table = 'i18n_translate_with_prefixes'; /** * fields property * * @var array */ public $fields = array( 'id' => array('type' => 'integer', 'key' => 'primary'), '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') ); /** * records property * * @var array */ public $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') ); }
0001-bee
trunk/cakephp2/lib/Cake/Test/Fixture/TranslateWithPrefixFixture.php
PHP
gpl3
4,059
<?php /** * Short description for file. * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.6700 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ /** * Short description for class. * * @package Cake.Test.Fixture */ class PersonFixture extends CakeTestFixture { /** * name property * * @var string 'Person' */ public $name = 'Person'; /** * fields property * * @var array */ public $fields = array( 'id' => array('type' => 'integer', 'null' => false, 'key' => 'primary'), 'name' => array('type' => 'string', 'null' => false, 'length' => 32), 'mother_id' => array('type' => 'integer', 'null' => false, 'key' => 'index'), 'father_id' => array('type' => 'integer', 'null' => false), 'indexes' => array( 'PRIMARY' => array('column' => 'id', 'unique' => 1), 'mother_id' => array('column' => array('mother_id', 'father_id'), 'unique' => 0) ) ); /** * records property * * @var array */ public $records = array( array('name' => 'person', 'mother_id' => 2, 'father_id' => 3), array('name' => 'mother', 'mother_id' => 4, 'father_id' => 5), array('name' => 'father', 'mother_id' => 6, 'father_id' => 7), array('name' => 'mother - grand mother', 'mother_id' => 0, 'father_id' => 0), array('name' => 'mother - grand father', 'mother_id' => 0, 'father_id' => 0), array('name' => 'father - grand mother', 'mother_id' => 0, 'father_id' => 0), array('name' => 'father - grand father', 'mother_id' => 0, 'father_id' => 0) ); }
0001-bee
trunk/cakephp2/lib/Cake/Test/Fixture/PersonFixture.php
PHP
gpl3
1,979
<?php /** * Short description for file. * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ /** * Short description for class. * * @package Cake.Test.Fixture */ class ArticleFeaturedsTagsFixture extends CakeTestFixture { /** * name property * * @var string 'ArticleFeaturedsTags' */ public $name = 'ArticleFeaturedsTags'; /** * fields property * * @var array */ public $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)) ); }
0001-bee
trunk/cakephp2/lib/Cake/Test/Fixture/ArticleFeaturedsTagsFixture.php
PHP
gpl3
1,221
<?php /** * Short description for file. * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.6317 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ /** * Short description for class. * * @package Cake.Test.Fixture */ class JoinCFixture extends CakeTestFixture { /** * name property * * @var string 'JoinC' */ public $name = 'JoinC'; /** * fields property * * @var array */ public $fields = array( 'id' => array('type' => 'integer', 'key' => 'primary'), 'name' => array('type' => 'string', 'default' => ''), 'created' => array('type' => 'datetime', 'null' => true), 'updated' => array('type' => 'datetime', 'null' => true) ); /** * records property * * @var array */ public $records = array( array('name' => 'Join C 1', 'created' => '2008-01-03 10:56:11', 'updated' => '2008-01-03 10:56:11'), array('name' => 'Join C 2', 'created' => '2008-01-03 10:56:12', 'updated' => '2008-01-03 10:56:12'), array('name' => 'Join C 3', 'created' => '2008-01-03 10:56:13', 'updated' => '2008-01-03 10:56:13') ); }
0001-bee
trunk/cakephp2/lib/Cake/Test/Fixture/JoinCFixture.php
PHP
gpl3
1,548
<?php /** * Short description for file. * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ /** * Short description for class. * * @package Cake.Test.Fixture */ class PortfolioFixture extends CakeTestFixture { /** * name property * * @var string 'Portfolio' */ public $name = 'Portfolio'; /** * fields property * * @var array */ public $fields = array( 'id' => array('type' => 'integer', 'key' => 'primary'), 'seller_id' => array('type' => 'integer', 'null' => false), 'name' => array('type' => 'string', 'null' => false) ); /** * records property * * @var array */ public $records = array( array('seller_id' => 1, 'name' => 'Portfolio 1'), array('seller_id' => 1, 'name' => 'Portfolio 2'), array('seller_id' => 2, 'name' => 'Portfolio 1') ); }
0001-bee
trunk/cakephp2/lib/Cake/Test/Fixture/PortfolioFixture.php
PHP
gpl3
1,349
<?php /** * Short description for file. * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.6317 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ /** * Short description for class. * * @package Cake.Test.Fixture */ class JoinACFixture extends CakeTestFixture { /** * name property * * @var string 'JoinAsJoinC' */ public $name = 'JoinAsJoinC'; /** * fields property * * @var array */ public $fields = array( 'id' => array('type' => 'integer', 'key' => 'primary'), 'join_a_id' => array('type' => 'integer', 'length' => 10, 'null' => true), 'join_c_id' => array('type' => 'integer', 'default' => null), 'other' => array('type' => 'string', 'default' => ''), 'created' => array('type' => 'datetime', 'null' => true), 'updated' => array('type' => 'datetime', 'null' => true) ); /** * records property * * @var array */ public $records = array( array('join_a_id' => 1, 'join_c_id' => 2, 'other' => 'Data for Join A 1 Join C 2', 'created' => '2008-01-03 10:57:22', 'updated' => '2008-01-03 10:57:22'), array('join_a_id' => 2, 'join_c_id' => 3, 'other' => 'Data for Join A 2 Join C 3', 'created' => '2008-01-03 10:57:23', 'updated' => '2008-01-03 10:57:23'), array('join_a_id' => 3, 'join_c_id' => 1, 'other' => 'Data for Join A 3 Join C 1', 'created' => '2008-01-03 10:57:24', 'updated' => '2008-01-03 10:57:24') ); }
0001-bee
trunk/cakephp2/lib/Cake/Test/Fixture/JoinACFixture.php
PHP
gpl3
1,868
<?php /** * Short description for file. * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ /** * Short description for class. * * @package Cake.Test.Fixture */ class FeaturedFixture extends CakeTestFixture { /** * name property * * @var string 'Featured' */ public $name = 'Featured'; /** * fields property * * @var array */ public $fields = array( 'id' => array('type' => 'integer', 'key' => 'primary'), 'article_featured_id' => array('type' => 'integer', 'null' => false), 'category_id' => array('type' => 'integer', 'null' => false), 'published_date' => 'datetime', 'end_date' => 'datetime', 'created' => 'datetime', 'updated' => 'datetime' ); /** * records property * * @var array */ public $records = array( array('article_featured_id' => 1, 'category_id' => 1, 'published_date' => '2007-03-31 10:39:23', 'end_date' => '2007-05-15 10:39:23', 'created' => '2007-03-18 10:39:23', 'updated' => '2007-03-18 10:41:31'), array('article_featured_id' => 2, 'category_id' => 1, 'published_date' => '2007-03-31 10:39:23', 'end_date' => '2007-05-15 10:39:23', 'created' => '2007-03-18 10:39:23', 'updated' => '2007-03-18 10:41:31'), ); }
0001-bee
trunk/cakephp2/lib/Cake/Test/Fixture/FeaturedFixture.php
PHP
gpl3
1,743
<?php /** * Short description for file. * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ /** * Short description for class. * * @package Cake.Test.Fixture */ class ArticlesTagFixture extends CakeTestFixture { /** * name property * * @var string 'ArticlesTag' */ public $name = 'ArticlesTag'; /** * fields property * * @var array */ public $fields = array( 'article_id' => array('type' => 'integer', 'null' => false), 'tag_id' => array('type' => 'integer', 'null' => false), 'indexes' => array('UNIQUE_TAG2' => array('column'=> array('article_id', 'tag_id'), 'unique'=>1)) ); /** * records property * * @var array */ public $records = array( array('article_id' => 1, 'tag_id' => 1), array('article_id' => 1, 'tag_id' => 2), array('article_id' => 2, 'tag_id' => 1), array('article_id' => 2, 'tag_id' => 3) ); }
0001-bee
trunk/cakephp2/lib/Cake/Test/Fixture/ArticlesTagFixture.php
PHP
gpl3
1,418
<?php /** * Short description for file. * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ /** * Short description for class. * * @package Cake.Test.Fixture */ class SomethingElseFixture extends CakeTestFixture { /** * name property * * @var string 'SomethingElse' */ public $name = 'SomethingElse'; /** * fields property * * @var array */ public $fields = array( 'id' => array('type' => 'integer', 'key' => 'primary'), 'title' => array('type' => 'string', 'default' => ''), 'body' => array('type' => 'text'), 'published' => array('type' => 'string', 'default' => ''), 'created' => array('type' => 'datetime', 'null' => true), 'updated' => array('type' => 'datetime', 'null' => true) ); /** * records property * * @var array */ public $records = array( array('title' => 'First Post', 'body' => 'First Post Body', 'published' => 'Y', 'created' => '2007-03-18 10:39:23', 'updated' => '2007-03-18 10:41:31'), array('title' => 'Second Post', 'body' => 'Second Post Body', 'published' => 'Y', 'created' => '2007-03-18 10:41:23', 'updated' => '2007-03-18 10:43:31'), array('title' => 'Third Post', 'body' => 'Third Post Body', 'published' => 'Y', 'created' => '2007-03-18 10:43:23', 'updated' => '2007-03-18 10:45:31') ); }
0001-bee
trunk/cakephp2/lib/Cake/Test/Fixture/SomethingElseFixture.php
PHP
gpl3
1,829
<?php /** * Counter Cache Test Fixtures * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ /** * Short description for class. * * @package Cake.Test.Fixture */ class CounterCachePostFixture extends CakeTestFixture { public $name = 'CounterCachePost'; public $fields = array( 'id' => array('type' => 'integer', 'key' => 'primary'), 'title' => array('type' => 'string', 'length' => 255), 'user_id' => array('type' => 'integer', 'null' => true), 'published' => array('type' => 'boolean', 'null' => false, 'default' => 0) ); public $records = array( array('id' => 1, 'title' => 'Rock and Roll', 'user_id' => 66, 'published' => 0), array('id' => 2, 'title' => 'Music', 'user_id' => 66, 'published' => true), array('id' => 3, 'title' => 'Food', 'user_id' => 301, 'published' => true), ); }
0001-bee
trunk/cakephp2/lib/Cake/Test/Fixture/CounterCachePostFixture.php
PHP
gpl3
1,390
<?php /** * Short description for file. * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ /** * Short description for class. * * @package Cake.Test.Fixture */ class ArosAcoFixture extends CakeTestFixture { /** * name property * * @var string 'ArosAco' */ public $name = 'ArosAco'; /** * fields property * * @var array */ public $fields = array( 'id' => array('type' => 'integer', 'key' => 'primary'), 'aro_id' => array('type' => 'integer', 'length' => 10, 'null' => false), 'aco_id' => array('type' => 'integer', 'length' => 10, 'null' => false), '_create' => array('type' => 'string', 'length' => 2, 'default' => 0), '_read' => array('type' => 'string', 'length' => 2, 'default' => 0), '_update' => array('type' => 'string', 'length' => 2, 'default' => 0), '_delete' => array('type' => 'string', 'length' => 2, 'default' => 0) ); /** * records property * * @var array */ public $records = array(); }
0001-bee
trunk/cakephp2/lib/Cake/Test/Fixture/ArosAcoFixture.php
PHP
gpl3
1,508
<?php /** * Short description for file. * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ /** * Short description for class. * * @package Cake.Test.Fixture */ class JoinThingFixture extends CakeTestFixture { /** * name property * * @var string 'JoinThing' */ public $name = 'JoinThing'; /** * fields property * * @var array */ public $fields = array( 'id' => array('type' => 'integer', 'key' => 'primary'), 'something_id' => array('type' => 'integer', 'length' => 10, 'null' => true), 'something_else_id' => array('type' => 'integer', 'default' => null), 'doomed' => array('type' => 'boolean', 'default' => '0'), 'created' => array('type' => 'datetime', 'null' => true), 'updated' => array('type' => 'datetime', 'null' => true) ); /** * records property * * @var array */ public $records = array( array('something_id' => 1, 'something_else_id' => 2, 'doomed' => '1', 'created' => '2007-03-18 10:39:23', 'updated' => '2007-03-18 10:41:31'), array('something_id' => 2, 'something_else_id' => 3, 'doomed' => '0', 'created' => '2007-03-18 10:41:23', 'updated' => '2007-03-18 10:43:31'), array('something_id' => 3, 'something_else_id' => 1, 'doomed' => '1', 'created' => '2007-03-18 10:43:23', 'updated' => '2007-03-18 10:45:31') ); }
0001-bee
trunk/cakephp2/lib/Cake/Test/Fixture/JoinThingFixture.php
PHP
gpl3
1,842
<?php /** * Short description for file. * * PHP 5 * * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice. * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://cakephp.org CakePHP(tm) Project * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.7026 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ /** * Short description for class. * * @package Cake.Test.Fixture */ class DatatypeFixture extends CakeTestFixture { /** * Name property * * @var string 'Datatype' */ public $name = 'Datatype'; /** * Fields property * * @var array */ public $fields = array( 'id' => array('type' => 'integer', 'null'=> false, 'default'=> 0, 'key' => 'primary'), 'float_field' => array('type' => 'float', 'length' => '5,2', 'null' => false, 'default' => null), 'bool' => array('type' => 'boolean', 'null' => false, 'default' => false), ); /** * Records property * * @var array */ public $records = array( array('id' => 1, 'float_field' => 42.23, 'bool' => 0), ); }
0001-bee
trunk/cakephp2/lib/Cake/Test/Fixture/DatatypeFixture.php
PHP
gpl3
1,320
<?php /** * Short description for after_tree_fixture.php * * Long description for after_tree_fixture.php * * PHP 5 * * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice. * * @copyright CakePHP(tm) : Rapid Development Framework (http://cakephp.org) * @link http://www.cakephp.org * @package Cake.Test.Fixture * @since 1.2 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ /** * AdFixture class * * @package Cake.Test.Fixture */ class AfterTreeFixture extends CakeTestFixture { /** * name property * * @var string 'AfterTree' */ public $name = 'AfterTree'; /** * fields property * * @var array */ public $fields = array( 'id' => array('type' => 'integer', 'key' => 'primary'), 'parent_id' => array('type' => 'integer'), 'lft' => array('type' => 'integer'), 'rght' => array('type' => 'integer'), 'name' => array('type' => 'string', 'length' => 255, 'null' => false) ); /** * records property * * @var array */ public $records = array( array('parent_id' => null, 'lft' => 1, 'rght' => 2, 'name' => 'One'), array('parent_id' => null, 'lft' => 3, 'rght' => 4, 'name' => 'Two'), array('parent_id' => null, 'lft' => 5, 'rght' => 6, 'name' => 'Three'), array('parent_id' => null, 'lft' => 7, 'rght' => 12, 'name' => 'Four'), array('parent_id' => null, 'lft' => 8, 'rght' => 9, 'name' => 'Five'), array('parent_id' => null, 'lft' => 10, 'rght' => 11, 'name' => 'Six'), array('parent_id' => null, 'lft' => 13, 'rght' => 14, 'name' => 'Seven') ); }
0001-bee
trunk/cakephp2/lib/Cake/Test/Fixture/AfterTreeFixture.php
PHP
gpl3
1,689
<?php /** * Short description for file. * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.5669 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ /** * Short description for class. * * @package Cake.Test.Fixture */ class TranslateArticleFixture extends CakeTestFixture { /** * name property * * @var string 'Translate' */ public $name = 'TranslateArticle'; /** * table property * * @var string 'i18n' */ public $table = 'article_i18n'; /** * fields property * * @var array */ public $fields = array( 'id' => array('type' => 'integer', 'key' => 'primary'), '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') ); /** * records property * * @var array */ public $records = array( array('id' => 1, 'locale' => 'eng', 'model' => 'TranslatedArticle', 'foreign_key' => 1, 'field' => 'title', 'content' => 'Title (eng) #1'), array('id' => 2, 'locale' => 'eng', 'model' => 'TranslatedArticle', 'foreign_key' => 1, 'field' => 'body', 'content' => 'Body (eng) #1'), array('id' => 3, 'locale' => 'deu', 'model' => 'TranslatedArticle', 'foreign_key' => 1, 'field' => 'title', 'content' => 'Title (deu) #1'), array('id' => 4, 'locale' => 'deu', 'model' => 'TranslatedArticle', 'foreign_key' => 1, 'field' => 'body', 'content' => 'Body (deu) #1'), array('id' => 5, 'locale' => 'cze', 'model' => 'TranslatedArticle', 'foreign_key' => 1, 'field' => 'title', 'content' => 'Title (cze) #1'), array('id' => 6, 'locale' => 'cze', 'model' => 'TranslatedArticle', 'foreign_key' => 1, 'field' => 'body', 'content' => 'Body (cze) #1'), array('id' => 7, 'locale' => 'eng', 'model' => 'TranslatedArticle', 'foreign_key' => 2, 'field' => 'title', 'content' => 'Title (eng) #2'), array('id' => 8, 'locale' => 'eng', 'model' => 'TranslatedArticle', 'foreign_key' => 2, 'field' => 'body', 'content' => 'Body (eng) #2'), array('id' => 9, 'locale' => 'deu', 'model' => 'TranslatedArticle', 'foreign_key' => 2, 'field' => 'title', 'content' => 'Title (deu) #2'), array('id' => 10, 'locale' => 'deu', 'model' => 'TranslatedArticle', 'foreign_key' => 2, 'field' => 'body', 'content' => 'Body (deu) #2'), array('id' => 11, 'locale' => 'cze', 'model' => 'TranslatedArticle', 'foreign_key' => 2, 'field' => 'title', 'content' => 'Title (cze) #2'), array('id' => 12, 'locale' => 'cze', 'model' => 'TranslatedArticle', 'foreign_key' => 2, 'field' => 'body', 'content' => 'Body (cze) #2'), array('id' => 13, 'locale' => 'eng', 'model' => 'TranslatedArticle', 'foreign_key' => 3, 'field' => 'title', 'content' => 'Title (eng) #3'), array('id' => 14, 'locale' => 'eng', 'model' => 'TranslatedArticle', 'foreign_key' => 3, 'field' => 'body', 'content' => 'Body (eng) #3'), array('id' => 15, 'locale' => 'deu', 'model' => 'TranslatedArticle', 'foreign_key' => 3, 'field' => 'title', 'content' => 'Title (deu) #3'), array('id' => 16, 'locale' => 'deu', 'model' => 'TranslatedArticle', 'foreign_key' => 3, 'field' => 'body', 'content' => 'Body (deu) #3'), array('id' => 17, 'locale' => 'cze', 'model' => 'TranslatedArticle', 'foreign_key' => 3, 'field' => 'title', 'content' => 'Title (cze) #3'), array('id' => 18, 'locale' => 'cze', 'model' => 'TranslatedArticle', 'foreign_key' => 3, 'field' => 'body', 'content' => 'Body (cze) #3') ); }
0001-bee
trunk/cakephp2/lib/Cake/Test/Fixture/TranslateArticleFixture.php
PHP
gpl3
4,012
<?php /** * Short description for file. * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ /** * Short description for class. * * @package Cake.Test.Fixture */ class UuiditemsUuidportfolioNumericidFixture extends CakeTestFixture { /** * name property * * @var string 'UuiditemsUuidportfolioNumericid' */ public $name = 'UuiditemsUuidportfolioNumericid'; /** * fields property * * @var array */ public $fields = array( 'id' => array('type' => 'integer', 'length' => 10, 'key' => 'primary'), 'uuiditem_id' => array('type' => 'string', 'length' => 36, 'null' => false), 'uuidportfolio_id' => array('type' => 'string', 'length' => 36, 'null' => false) ); /** * records property * * @var array */ public $records = array( array('uuiditem_id' => '481fc6d0-b920-43e0-a40d-6d1740cf8569', 'uuidportfolio_id' => '4806e091-6940-4d2b-b227-303740cf8569'), array('uuiditem_id' => '48298a29-81c0-4c26-a7fb-413140cf8569', 'uuidportfolio_id' => '480af662-eb8c-47d3-886b-230540cf8569'), array('uuiditem_id' => '482b7756-8da0-419a-b21f-27da40cf8569', 'uuidportfolio_id' => '4806e091-6940-4d2b-b227-303740cf8569'), array('uuiditem_id' => '482cfd4b-0e7c-4ea3-9582-4cec40cf8569', 'uuidportfolio_id' => '4806e091-6940-4d2b-b227-303740cf8569') ); }
0001-bee
trunk/cakephp2/lib/Cake/Test/Fixture/UuiditemsUuidportfolioNumericidFixture.php
PHP
gpl3
1,832
<?php /** * Tree behavior class test fixture. * * Enables a model object to act as a node-based tree. * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.5331 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ /** * Flag Tree Test Fixture * * Like Number Tree, but uses a flag for testing scope parameters * * @package Cake.Test.Fixture */ class FlagTreeFixture extends CakeTestFixture { /** * name property * * @var string 'FlagTree' */ public $name = 'FlagTree'; /** * fields property * * @var array */ public $fields = array( 'id' => array('type' => 'integer','key' => 'primary'), 'name' => array('type' => 'string','null' => false), 'parent_id' => 'integer', 'lft' => array('type' => 'integer','null' => false), 'rght' => array('type' => 'integer','null' => false), 'flag' => array('type' => 'integer','null' => false, 'length' => 1, 'default' => 0) ); }
0001-bee
trunk/cakephp2/lib/Cake/Test/Fixture/FlagTreeFixture.php
PHP
gpl3
1,404
<?php /** * Short description for ad_fixture.php * * Long description for ad_fixture.php * * PHP 5 * * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice. * * @copyright CakePHP(tm) : Rapid Development Framework (http://cakephp.org) * @link http://www.cakephp.org * @package Cake.Test.Fixture * @since 1.2 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ /** * AdFixture class * * @package Cake.Test.Fixture */ class AdFixture extends CakeTestFixture { /** * name property * * @var string 'Ad' */ public $name = 'Ad'; /** * fields property * * @var array */ public $fields = array( 'id' => array('type' => 'integer', 'key' => 'primary'), 'campaign_id' => array('type' => 'integer'), 'parent_id' => array('type' => 'integer'), 'lft' => array('type' => 'integer'), 'rght' => array('type' => 'integer'), 'name' => array('type' => 'string', 'length' => 255, 'null' => false) ); /** * records property * * @var array */ public $records = array( array('parent_id' => null, 'lft' => 1, 'rght' => 2, 'campaign_id' => 1, 'name' => 'Nordover'), array('parent_id' => null, 'lft' => 3, 'rght' => 4, 'campaign_id' => 1, 'name' => 'Statbergen'), array('parent_id' => null, 'lft' => 5, 'rght' => 6, 'campaign_id' => 1, 'name' => 'Feroy'), array('parent_id' => null, 'lft' => 7, 'rght' => 12, 'campaign_id' => 2, 'name' => 'Newcastle'), array('parent_id' => null, 'lft' => 8, 'rght' => 9, 'campaign_id' => 2, 'name' => 'Dublin'), array('parent_id' => null, 'lft' => 10, 'rght' => 11, 'campaign_id' => 2, 'name' => 'Alborg'), array('parent_id' => null, 'lft' => 13, 'rght' => 14, 'campaign_id' => 3, 'name' => 'New York') ); }
0001-bee
trunk/cakephp2/lib/Cake/Test/Fixture/AdFixture.php
PHP
gpl3
1,869
<?php /** * Short description for file. * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ /** * Short description for class. * * @package Cake.Test.Fixture */ class ItemsPortfolioFixture extends CakeTestFixture { /** * name property * * @var string 'ItemsPortfolio' */ public $name = 'ItemsPortfolio'; /** * fields property * * @var array */ public $fields = array( 'id' => array('type' => 'integer', 'key' => 'primary'), 'item_id' => array('type' => 'integer', 'null' => false), 'portfolio_id' => array('type' => 'integer', 'null' => false) ); /** * records property * * @var array */ public $records = array( array('item_id' => 1, 'portfolio_id' => 1), array('item_id' => 2, 'portfolio_id' => 2), array('item_id' => 3, 'portfolio_id' => 1), array('item_id' => 4, 'portfolio_id' => 1), array('item_id' => 5, 'portfolio_id' => 1), array('item_id' => 6, 'portfolio_id' => 2) ); }
0001-bee
trunk/cakephp2/lib/Cake/Test/Fixture/ItemsPortfolioFixture.php
PHP
gpl3
1,491
<?php /** * Short description for file. * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ /** * Short description for class. * * @package Cake.Test.Fixture */ class SyfileFixture extends CakeTestFixture { /** * name property * * @var string 'Syfile' */ public $name = 'Syfile'; /** * fields property * * @var array */ public $fields = array( 'id' => array('type' => 'integer', 'key' => 'primary'), 'image_id' => array('type' => 'integer', 'null' => true), 'name' => array('type' => 'string', 'null' => false), 'item_count' => array('type' => 'integer', 'null' => true) ); /** * records property * * @var array */ public $records = array( array('image_id' => 1, 'name' => 'Syfile 1'), array('image_id' => 2, 'name' => 'Syfile 2'), array('image_id' => 5, 'name' => 'Syfile 3'), array('image_id' => 3, 'name' => 'Syfile 4'), array('image_id' => 4, 'name' => 'Syfile 5'), array('image_id' => null, 'name' => 'Syfile 6') ); }
0001-bee
trunk/cakephp2/lib/Cake/Test/Fixture/SyfileFixture.php
PHP
gpl3
1,535
<?php /** * Short description for file. * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ /** * Short description for class. * * @package Cake.Test.Fixture */ class AdvertisementFixture extends CakeTestFixture { /** * name property * * @var string 'Advertisement' */ public $name = 'Advertisement'; /** * fields property * * @var array */ public $fields = array( 'id' => array('type' => 'integer', 'key' => 'primary'), 'title' => array('type' => 'string', 'null' => false), 'created' => 'datetime', 'updated' => 'datetime' ); /** * records property * * @var array */ public $records = array( array('title' => 'First Ad', 'created' => '2007-03-18 10:39:23', 'updated' => '2007-03-18 10:41:31'), array('title' => 'Second Ad', 'created' => '2007-03-18 10:41:23', 'updated' => '2007-03-18 10:43:31') ); }
0001-bee
trunk/cakephp2/lib/Cake/Test/Fixture/AdvertisementFixture.php
PHP
gpl3
1,407
<?php /** * Short description for file. * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ /** * Short description for class. * * @package Cake.Test.Fixture */ class NumericArticleFixture extends CakeTestFixture { /** * name property * * @var string 'NumericArticle' */ public $name = 'NumericArticle'; /** * fields property * * @var array */ public $fields = array( 'id' => array('type' => 'integer', 'key' => 'primary'), 'title' => array('type' => 'string', 'null' => false), 'created' => 'datetime', 'updated' => 'datetime' ); /** * records property * * @var array */ public $records = array( array('title' => 'First Article', 'created' => '2007-03-18 10:39:23', 'updated' => '2007-03-18 10:41:31'), array('title' => '12345abcde', 'created' => '2007-03-18 10:41:23', 'updated' => '2007-03-18 10:43:31'), ); }
0001-bee
trunk/cakephp2/lib/Cake/Test/Fixture/NumericArticleFixture.php
PHP
gpl3
1,417
<?php /** * Short description for file. * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.5669 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ /** * Short description for class. * * @package Cake.Test.Fixture */ class TranslatedArticleFixture extends CakeTestFixture { /** * name property * * @var string 'TranslatedItem' */ public $name = 'TranslatedArticle'; /** * fields property * * @var array */ public $fields = array( 'id' => array('type' => 'integer', 'key' => 'primary'), 'user_id' => array('type' => 'integer', 'null' => false), 'published' => array('type' => 'string', 'length' => 1, 'default' => 'N'), 'created' => 'datetime', 'updated' => 'datetime' ); /** * records property * * @var array */ public $records = array( array('id' => 1, 'user_id' => 1, 'published' => 'Y', 'created' => '2007-03-18 10:39:23', 'updated' => '2007-03-18 10:41:31'), array('id' => 2, 'user_id' => 3, 'published' => 'Y', 'created' => '2007-03-18 10:41:23', 'updated' => '2007-03-18 10:43:31'), array('id' => 3, 'user_id' => 1, 'published' => 'Y', 'created' => '2007-03-18 10:43:23', 'updated' => '2007-03-18 10:45:31') ); }
0001-bee
trunk/cakephp2/lib/Cake/Test/Fixture/TranslatedArticleFixture.php
PHP
gpl3
1,671
<?php /** * Short description for file. * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 7660 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ /** * Short description for class. * * @package Cake.Test.Fixture */ class TestPluginArticleFixture extends CakeTestFixture { /** * name property * * @var string 'Article' */ public $name = 'TestPluginArticle'; /** * fields property * * @var array */ public $fields = array( 'id' => array('type' => 'integer', 'key' => 'primary'), 'user_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' ); /** * records property * * @var array */ public $records = array( array('user_id' => 1, 'title' => 'First Plugin Article', 'body' => 'First Plugin Article Body', 'published' => 'Y', 'created' => '2008-09-24 10:39:23', 'updated' => '2008-09-24 10:41:31'), array('user_id' => 3, 'title' => 'Second Plugin Article', 'body' => 'Second Plugin Article Body', 'published' => 'Y', 'created' => '2008-09-24 10:41:23', 'updated' => '2008-09-24 10:43:31'), array('user_id' => 1, 'title' => 'Third Plugin Article', 'body' => 'Third Plugin Article Body', 'published' => 'Y', 'created' => '2008-09-24 10:43:23', 'updated' => '2008-09-24 10:45:31') ); }
0001-bee
trunk/cakephp2/lib/Cake/Test/Fixture/TestPluginArticleFixture.php
PHP
gpl3
1,926
<?php /** * Short description for file. * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ /** * Short description for class. * * @package Cake.Test.Fixture */ class ThePaperMonkiesFixture extends CakeTestFixture { /** * name property * * @var string 'ThePaperMonkies' */ public $name = 'ThePaperMonkies'; /** * fields property * * @var array */ public $fields = array( 'apple_id' => array('type' => 'integer', 'length' => 10, 'null' => true), 'device_id' => array('type' => 'integer', 'length' => 10, 'null' => true) ); /** * records property * * @var array */ public $records = array(); }
0001-bee
trunk/cakephp2/lib/Cake/Test/Fixture/ThePaperMonkiesFixture.php
PHP
gpl3
1,187
<?php /** * Short description for file. * * PHP versions 4 and 5 * * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The Open Group Test Suite License * Redistributions of files must retain the above copyright notice. * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests * @package Cake.Test.Fixture * @subpackage cake.tests.fixtures * @since CakePHP(tm) v 1.2.0.4667 * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ /** * Short description for class. * * @package Cake.Test.Fixture * @subpackage cake.tests.fixtures */ class PrefixTestFixture extends CakeTestFixture { public $name = 'PrefixTest'; public $table = 'prefix_prefix_tests'; public $fields = array( 'id' => array('type' => 'integer', 'key' => 'primary'), ); }
0001-bee
trunk/cakephp2/lib/Cake/Test/Fixture/PrefixTestFixture.php
PHP
gpl3
1,074
<?php /** * Short description for file. * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.7953 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ /** * Short description for class. * * @package Cake.Test.Fixture */ class FruitFixture extends CakeTestFixture { /** * name property * * @var string 'Fruit' */ public $name = 'Fruit'; /** * fields property * * @var array */ public $fields = array( 'id' => array('type' => 'string', 'length' => 36, 'key' => 'primary'), 'name' => array('type' => 'string', 'length' => 255), 'color' => array('type' => 'string', 'length' => 13), 'shape' => array('type' => 'string', 'length' => 255), 'taste' => array('type' => 'string', 'length' => 255) ); /** * records property * * @var array */ public $records = array( array( 'id' => '481fc6d0-b920-43e0-a40d-6d1740cf8569', 'name' => 'Orange', 'color' => 'orange', 'shape' => 'Spherical', 'taste' => 'Tangy & Sweet' ) ); }
0001-bee
trunk/cakephp2/lib/Cake/Test/Fixture/FruitFixture.php
PHP
gpl3
1,465
<?php /** * Short description for file. * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ /** * Short description for class. * * @package Cake.Test.Fixture */ class AuthorFixture extends CakeTestFixture { /** * name property * * @var string 'Author' */ public $name = 'Author'; /** * fields property * * @var array */ public $fields = array( 'id' => array('type' => 'integer', 'key' => 'primary'), 'user' => array('type' => 'string', 'default' => null), 'password' => array('type' => 'string', 'default' => null), 'created' => 'datetime', 'updated' => 'datetime' ); /** * records property * * @var array */ public $records = array( array('user' => 'mariano', 'password' => '5f4dcc3b5aa765d61d8327deb882cf99', 'created' => '2007-03-17 01:16:23', 'updated' => '2007-03-17 01:18:31'), array('user' => 'nate', 'password' => '5f4dcc3b5aa765d61d8327deb882cf99', 'created' => '2007-03-17 01:18:23', 'updated' => '2007-03-17 01:20:31'), array('user' => 'larry', 'password' => '5f4dcc3b5aa765d61d8327deb882cf99', 'created' => '2007-03-17 01:20:23', 'updated' => '2007-03-17 01:22:31'), array('user' => 'garrett', 'password' => '5f4dcc3b5aa765d61d8327deb882cf99', 'created' => '2007-03-17 01:22:23', 'updated' => '2007-03-17 01:24:31'), ); }
0001-bee
trunk/cakephp2/lib/Cake/Test/Fixture/AuthorFixture.php
PHP
gpl3
1,844
<?php /** * Short description for file. * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.7198 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ /** * Short description for class. * * @package Cake.Test.Fixture */ class CdFixture extends CakeTestFixture { /** * name property * * @var string 'Cd' */ public $name = 'Cd'; /** * fields property * * @var array */ public $fields = array( 'id' => array('type' => 'integer', 'key' => 'primary'), 'title' => array('type' => 'string', 'length' => 255), 'artist' => array('type' => 'string', 'length' => 255, 'null' => true), 'genre' => array('type' => 'string', 'length' => 255, 'null' => true) ); /** * records property * * @var array */ public $records = array( array('id' => 1, 'title' => 'Grace', 'artist' => 'Jeff Buckley', 'genre' => 'awesome') ); }
0001-bee
trunk/cakephp2/lib/Cake/Test/Fixture/CdFixture.php
PHP
gpl3
1,349
<?php /** * Short description for file. * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ /** * Short description for class. * * @package Cake.Test.Fixture */ class MyCategoriesMyUsersFixture extends CakeTestFixture { /** * name property * * @var string 'MyCategoriesMyUsers' */ public $name = 'MyCategoriesMyUsers'; /** * fields property * * @var array */ public $fields = array( 'my_category_id' => array('type' => 'integer'), 'my_user_id' => array('type' => 'integer'), ); /** * records property * * @var array */ public $records = array( array('my_category_id' => 1, 'my_user_id' => 1), array('my_category_id' => 3, 'my_user_id' => 1), array('my_category_id' => 1, 'my_user_id' => 2), array('my_category_id' => 2, 'my_user_id' => 2), ); }
0001-bee
trunk/cakephp2/lib/Cake/Test/Fixture/MyCategoriesMyUsersFixture.php
PHP
gpl3
1,349
<?php /** * Short description for file. * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ /** * Short description for class. * * @package Cake.Test.Fixture */ class AcoTwoFixture extends CakeTestFixture { /** * name property * * @var string 'AcoTwo' */ public $name = 'AcoTwo'; /** * fields property * * @var array */ public $fields = array( 'id' => array('type' => 'integer', 'key' => 'primary'), 'parent_id' => array('type' => 'integer', 'length' => 10, 'null' => true), 'model' => array('type' => 'string', 'null' => true), 'foreign_key' => array('type' => 'integer', 'length' => 10, 'null' => true), 'alias' => array('type' => 'string', 'default' => ''), 'lft' => array('type' => 'integer', 'length' => 10, 'null' => true), 'rght' => array('type' => 'integer', 'length' => 10, 'null' => true) ); /** * records property * * @var array */ public $records = array( array('parent_id' => null, 'model' => null, 'foreign_key' => null, 'alias' => 'ROOT', 'lft' => 1, 'rght' => 20), array('parent_id' => 1, 'model' => null, 'foreign_key' => null, 'alias' => 'tpsReports', 'lft' => 2, 'rght' => 9), array('parent_id' => 2, 'model' => null, 'foreign_key' => null, 'alias' => 'view', 'lft' => 3, 'rght' => 6), array('parent_id' => 3, 'model' => null, 'foreign_key' => null, 'alias' => 'current', 'lft' => 4, 'rght' => 5), array('parent_id' => 2, 'model' => null, 'foreign_key' => null, 'alias' => 'update', 'lft' => 7, 'rght' => 8), array('parent_id' => 1, 'model' => null, 'foreign_key' => null, 'alias' => 'printers', 'lft' => 10, 'rght' => 19), array('parent_id' => 6, 'model' => null, 'foreign_key' => null, 'alias' => 'print', 'lft' => 11, 'rght' => 14), array('parent_id' => 7, 'model' => null, 'foreign_key' => null, 'alias' => 'lettersize','lft' => 12, 'rght' => 13), array('parent_id' => 6, 'model' => null, 'foreign_key' => null, 'alias' => 'refill', 'lft' => 15, 'rght' => 16), array('parent_id' => 6, 'model' => null, 'foreign_key' => null, 'alias' => 'smash', 'lft' => 17, 'rght' => 18), ); }
0001-bee
trunk/cakephp2/lib/Cake/Test/Fixture/AcoTwoFixture.php
PHP
gpl3
2,650
<?php /** * Short description for file. * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ /** * Short description for class. * * @package Cake.Test.Fixture */ class AroTwoFixture extends CakeTestFixture { /** * name property * * @var string 'AroTwo' */ public $name = 'AroTwo'; /** * fields property * * @var array */ public $fields = array( 'id' => array('type' => 'integer', 'key' => 'primary'), 'parent_id' => array('type' => 'integer', 'length' => 10, 'null' => true), 'model' => array('type' => 'string', 'null' => true), 'foreign_key' => array('type' => 'integer', 'length' => 10, 'null' => true), 'alias' => array('type' => 'string', 'default' => ''), 'lft' => array('type' => 'integer', 'length' => 10, 'null' => true), 'rght' => array('type' => 'integer', 'length' => 10, 'null' => true) ); /** * records property * * @var array */ public $records = array( array('parent_id' => null, 'model' => null, 'foreign_key' => null, 'alias' => 'root', 'lft' => '1', 'rght' => '20'), array('parent_id' => 1, 'model' => 'Group', 'foreign_key' => '1', 'alias' => 'admin', 'lft' => '2', 'rght' => '5'), array('parent_id' => 1, 'model' => 'Group', 'foreign_key' => '2', 'alias' => 'managers', 'lft' => '6', 'rght' => '9'), array('parent_id' => 1, 'model' => 'Group', 'foreign_key' => '3', 'alias' => 'users', 'lft' => '10', 'rght' => '19'), array('parent_id' => 2, 'model' => 'User', 'foreign_key' => '1', 'alias' => 'Bobs', 'lft' => '3', 'rght' => '4' ), array('parent_id' => 3, 'model' => 'User', 'foreign_key' => '2', 'alias' => 'Lumbergh', 'lft' => '7' , 'rght' => '8'), array('parent_id' => 4, 'model' => 'User', 'foreign_key' => '3', 'alias' => 'Samir', 'lft' => '11' , 'rght' => '12'), array('parent_id' => 4, 'model' => 'User', 'foreign_key' => '4', 'alias' => 'Micheal', 'lft' => '13', 'rght' => '14'), array('parent_id' => 4, 'model' => 'User', 'foreign_key' => '5', 'alias' => 'Peter', 'lft' => '15', 'rght' => '16'), array( 'parent_id' => 4, 'model' => 'User', 'foreign_key' => '6', 'alias' => 'Milton', 'lft' => '17', 'rght' => '18'), ); }
0001-bee
trunk/cakephp2/lib/Cake/Test/Fixture/AroTwoFixture.php
PHP
gpl3
2,715
<?php /** * Short description for file. * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.7198 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ /** * Short description for class. * * @package Cake.Test.Fixture */ class BookFixture extends CakeTestFixture { /** * name property * * @var string 'Book' */ public $name = 'Book'; /** * fields property * * @var array */ public $fields = array( 'id' => array('type' => 'integer', 'key' => 'primary'), 'isbn' => array('type' => 'string', 'length' => 13), 'title' => array('type' => 'string', 'length' => 255), 'author' => array('type' => 'string', 'length' => 255), 'year' => array('type' => 'integer', 'null' => true), 'pages' => array('type' => 'integer', 'null' => true) ); /** * records property * * @var array */ public $records = array( array('id' => 1, 'isbn' => '1234567890', 'title' => 'Faust', 'author' => 'Johann Wolfgang von Goethe') ); }
0001-bee
trunk/cakephp2/lib/Cake/Test/Fixture/BookFixture.php
PHP
gpl3
1,450
<?php /** * Short description for file. * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ /** * Short description for class. * * @package Cake.Test.Fixture */ class AccountFixture extends CakeTestFixture { /** * name property * * @var string 'Aco' */ public $name = 'Account'; public $table = 'Accounts'; /** * fields property * * @var array */ public $fields = array( 'iAccountId' => array('type' => 'integer', 'key' => 'primary'), 'cDescription' => array('type' => 'string', 'length' => 10, 'null' => true) ); /** * records property * * @var array */ public $records = array( array('cDescription' => 'gwoo'), array('cDescription' => 'phpnut'), array('cDescription' => 'schreck'), array('cDescription' => 'dude') ); }
0001-bee
trunk/cakephp2/lib/Cake/Test/Fixture/AccountFixture.php
PHP
gpl3
1,327
<?php /** * Short description for file. * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ /** * Short description for class. * * @package Cake.Test.Fixture */ class CallbackFixture extends CakeTestFixture { /** * name property * * @var string 'Callback' */ public $name = 'Callback'; /** * fields property * * @var array */ public $fields = array( 'id' => array('type' => 'integer', 'key' => 'primary'), 'user' => array('type' => 'string', 'null' => false), 'password' => array('type' => 'string', 'null' => false), 'created' => 'datetime', 'updated' => 'datetime' ); /** * records property * * @var array */ public $records = array( array('user' => 'user1', 'password' => '5f4dcc3b5aa765d61d8327deb882cf99', 'created' => '2007-03-17 01:18:23', 'updated' => '2007-03-17 01:20:31'), array('user' => 'user2', 'password' => '5f4dcc3b5aa765d61d8327deb882cf99', 'created' => '2007-03-17 01:20:23', 'updated' => '2007-03-17 01:22:31'), array('user' => 'user3', 'password' => '5f4dcc3b5aa765d61d8327deb882cf99', 'created' => '2007-03-17 01:22:23', 'updated' => '2007-03-17 01:24:31'), ); }
0001-bee
trunk/cakephp2/lib/Cake/Test/Fixture/CallbackFixture.php
PHP
gpl3
1,693
<?php /** * Short description for file. * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ /** * Short description for class. * * @package Cake.Test.Fixture */ class ContentFixture extends CakeTestFixture { /** * name property * * @var string 'Aco' */ public $name = 'Content'; public $table = 'Content'; /** * fields property * * @var array */ public $fields = array( 'iContentId' => array('type' => 'integer', 'key' => 'primary'), 'cDescription' => array('type' => 'string', 'length' => 50, 'null' => true) ); /** * records property * * @var array */ public $records = array( array('cDescription' => 'Test Content 1'), array('cDescription' => 'Test Content 2'), array('cDescription' => 'Test Content 3'), array('cDescription' => 'Test Content 4') ); }
0001-bee
trunk/cakephp2/lib/Cake/Test/Fixture/ContentFixture.php
PHP
gpl3
1,361
<?php /** * Short description for file. * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.6317 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ /** * Short description for class. * * @package Cake.Test.Fixture */ class JoinABFixture extends CakeTestFixture { /** * name property * * @var string 'JoinAsJoinB' */ public $name = 'JoinAsJoinB'; /** * fields property * * @var array */ public $fields = array( 'id' => array('type' => 'integer', 'key' => 'primary'), 'join_a_id' => array('type' => 'integer', 'length' => 10, 'null' => true), 'join_b_id' => array('type' => 'integer', 'default' => null), 'other' => array('type' => 'string', 'default' => ''), 'created' => array('type' => 'datetime', 'null' => true), 'updated' => array('type' => 'datetime', 'null' => true) ); /** * records property * * @var array */ public $records = array( array('join_a_id' => 1, 'join_b_id' => 2, 'other' => 'Data for Join A 1 Join B 2', 'created' => '2008-01-03 10:56:33', 'updated' => '2008-01-03 10:56:33'), array('join_a_id' => 2, 'join_b_id' => 3, 'other' => 'Data for Join A 2 Join B 3', 'created' => '2008-01-03 10:56:34', 'updated' => '2008-01-03 10:56:34'), array('join_a_id' => 3, 'join_b_id' => 1, 'other' => 'Data for Join A 3 Join B 1', 'created' => '2008-01-03 10:56:35', 'updated' => '2008-01-03 10:56:35') ); }
0001-bee
trunk/cakephp2/lib/Cake/Test/Fixture/JoinABFixture.php
PHP
gpl3
1,868
<?php /** * Short description for file. * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ /** * Short description for class. * * @package Cake.Test.Fixture */ class UuiditemsUuidportfolioFixture extends CakeTestFixture { /** * name property * * @var string 'UuiditemsUuidportfolio' */ public $name = 'UuiditemsUuidportfolio'; /** * fields property * * @var array */ public $fields = array( 'id' => array('type' => 'string', 'length' => 36, 'key' => 'primary'), 'uuiditem_id' => array('type' => 'string', 'length' => 36, 'null' => false), 'uuidportfolio_id' => array('type' => 'string', 'length' => 36, 'null' => false) ); /** * records property * * @var array */ public $records = array( array('id' => '4850fd8f-cc5c-449f-bf34-0c5240cf8569', 'uuiditem_id' => '481fc6d0-b920-43e0-a40d-6d1740cf8569', 'uuidportfolio_id' => '4806e091-6940-4d2b-b227-303740cf8569'), array('id' => '4850fee5-d24c-4ea0-9759-0c2e40cf8569', 'uuiditem_id' => '48298a29-81c0-4c26-a7fb-413140cf8569', 'uuidportfolio_id' => '480af662-eb8c-47d3-886b-230540cf8569'), array('id' => '4851af6e-fa18-403d-b57e-437d40cf8569', 'uuiditem_id' => '482b7756-8da0-419a-b21f-27da40cf8569', 'uuidportfolio_id' => '4806e091-6940-4d2b-b227-303740cf8569'), array('id' => '4851b94c-9790-42dc-b760-4f9240cf8569', 'uuiditem_id' => '482cfd4b-0e7c-4ea3-9582-4cec40cf8569', 'uuidportfolio_id' => '4806e091-6940-4d2b-b227-303740cf8569') ); }
0001-bee
trunk/cakephp2/lib/Cake/Test/Fixture/UuiditemsUuidportfolioFixture.php
PHP
gpl3
1,996
<?php /** * Short description for file. * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ /** * Short description for class. * * @package Cake.Test.Fixture */ class MyCategoriesMyProductsFixture extends CakeTestFixture { /** * name property * * @var string 'MyCategoriesMyProducts' */ public $name = 'MyCategoriesMyProducts'; /** * fields property * * @var array */ public $fields = array( 'my_category_id' => array('type' => 'integer'), 'my_product_id' => array('type' => 'integer'), ); /** * records property * * @var array */ public $records = array( array('my_category_id' => 1, 'my_product_id' => 1), array('my_category_id' => 2, 'my_product_id' => 1), array('my_category_id' => 2, 'my_product_id' => 2), array('my_category_id' => 3, 'my_product_id' => 2), ); }
0001-bee
trunk/cakephp2/lib/Cake/Test/Fixture/MyCategoriesMyProductsFixture.php
PHP
gpl3
1,373
<?php /** * Short description for file. * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.7198 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ /** * Short description for class. * * @package Cake.Test.Fixture */ class OverallFavoriteFixture extends CakeTestFixture { /** * name property * * @var string 'OverallFavorite' */ public $name = 'OverallFavorite'; /** * fields property * * @var array */ public $fields = array( 'id' => array('type' => 'integer', 'key' => 'primary'), 'model_type' => array('type' => 'string', 'length' => 255), 'model_id' => array('type' => 'integer'), 'priority' => array('type' => 'integer') ); /** * records property * * @var array */ public $records = array( array('id' => 1, 'model_type' => 'Cd', 'model_id' => '1', 'priority' => '1'), array('id' => 2, 'model_type' => 'Book', 'model_id' => '1', 'priority' => '2') ); }
0001-bee
trunk/cakephp2/lib/Cake/Test/Fixture/OverallFavoriteFixture.php
PHP
gpl3
1,405
<?php /** * Short description for file. * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ /** * Short description for class. * * @package Cake.Test.Fixture */ class StoriesTagFixture extends CakeTestFixture { /** * name property * * @var string 'StoriesTag' */ public $name = 'StoriesTag'; /** * fields property * * @var array */ public $fields = array( 'story' => array('type' => 'integer', 'null' => false), 'tag_id' => array('type' => 'integer', 'null' => false), 'indexes' => array('UNIQUE_STORY_TAG' => array('column'=> array('story', 'tag_id'), 'unique'=>1)) ); /** * records property * * @var array */ public $records = array( array('story' => 1, 'tag_id' => 1) ); }
0001-bee
trunk/cakephp2/lib/Cake/Test/Fixture/StoriesTagFixture.php
PHP
gpl3
1,276
<?php /** * Short description for file. * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ /** * Short description for class. * * @package Cake.Test.Fixture */ class ArticleFeaturedFixture extends CakeTestFixture { /** * name property * * @var string 'ArticleFeatured' */ public $name = 'ArticleFeatured'; /** * fields property * * @var array */ public $fields = array( 'id' => array('type' => 'integer', 'key' => 'primary'), 'user_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' ); /** * records property * * @var array */ public $records = array( array('user_id' => 1, 'title' => 'First Article', 'body' => 'First Article Body', 'published' => 'Y', 'created' => '2007-03-18 10:39:23', 'updated' => '2007-03-18 10:41:31'), array('user_id' => 3, 'title' => 'Second Article', 'body' => 'Second Article Body', 'published' => 'Y', 'created' => '2007-03-18 10:41:23', 'updated' => '2007-03-18 10:43:31'), array('user_id' => 1, 'title' => 'Third Article', 'body' => 'Third Article Body', 'published' => 'Y', 'created' => '2007-03-18 10:43:23', 'updated' => '2007-03-18 10:45:31') ); }
0001-bee
trunk/cakephp2/lib/Cake/Test/Fixture/ArticleFeaturedFixture.php
PHP
gpl3
1,894
<?php /** * Short description for file. * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ /** * Short description for class. * * @package Cake.Test.Fixture */ class ProjectFixture extends CakeTestFixture { /** * name property * * @var string 'Project' */ public $name = 'Project'; /** * fields property * * @var array */ public $fields = array( 'id' => array('type' => 'integer', 'key' => 'primary'), 'name' => array('type' => 'string', 'null' => false) ); /** * records property * * @var array */ public $records = array( array('name' => 'Project 1'), array('name' => 'Project 2'), array('name' => 'Project 3') ); }
0001-bee
trunk/cakephp2/lib/Cake/Test/Fixture/ProjectFixture.php
PHP
gpl3
1,221
<?php /** * Short description for file. * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ /** * Short description for class. * * @package Cake.Test.Fixture */ class TagFixture extends CakeTestFixture { /** * name property * * @var string 'Tag' */ public $name = 'Tag'; /** * fields property * * @var array */ public $fields = array( 'id' => array('type' => 'integer', 'key' => 'primary'), 'tag' => array('type' => 'string', 'null' => false), 'created' => 'datetime', 'updated' => 'datetime' ); /** * records property * * @var array */ public $records = array( array('tag' => 'tag1', 'created' => '2007-03-18 12:22:23', 'updated' => '2007-03-18 12:24:31'), array('tag' => 'tag2', 'created' => '2007-03-18 12:24:23', 'updated' => '2007-03-18 12:26:31'), array('tag' => 'tag3', 'created' => '2007-03-18 12:26:23', 'updated' => '2007-03-18 12:28:31') ); }
0001-bee
trunk/cakephp2/lib/Cake/Test/Fixture/TagFixture.php
PHP
gpl3
1,460
<?php /** * Short description for file. * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ /** * Short description for class. * * @package Cake.Test.Fixture */ class SomethingFixture extends CakeTestFixture { /** * name property * * @var string 'Something' */ public $name = 'Something'; /** * fields property * * @var array */ public $fields = array( 'id' => array('type' => 'integer', 'key' => 'primary'), 'title' => array('type' => 'string', 'default' => ''), 'body' => array('type' => 'text'), 'published' => array('type' => 'string', 'default' => ''), 'created' => array('type' => 'datetime', 'null' => true), 'updated' => array('type' => 'datetime', 'null' => true) ); /** * records property * * @var array */ public $records = array( array('title' => 'First Post', 'body' => 'First Post Body', 'published' => 'Y', 'created' => '2007-03-18 10:39:23', 'updated' => '2007-03-18 10:41:31'), array('title' => 'Second Post', 'body' => 'Second Post Body', 'published' => 'Y', 'created' => '2007-03-18 10:41:23', 'updated' => '2007-03-18 10:43:31'), array('title' => 'Third Post', 'body' => 'Third Post Body', 'published' => 'Y', 'created' => '2007-03-18 10:43:23', 'updated' => '2007-03-18 10:45:31') ); }
0001-bee
trunk/cakephp2/lib/Cake/Test/Fixture/SomethingFixture.php
PHP
gpl3
1,817
<?php /** * Short description for file. * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ /** * Short description for class. * * @package Cake.Test.Fixture */ class ProductFixture extends CakeTestFixture { /** * name property * * @var string 'Product' */ public $name = 'Product'; /** * fields property * * @var array */ public $fields = array( 'id' => array('type' => 'integer', 'key' => 'primary'), 'name' => array('type' => 'string', 'length' => 255, 'null' => false), 'type' => array('type' => 'string', 'length' => 255, 'null' => false), 'price' => array('type' => 'integer', 'null' => false) ); /** * records property * * @var array */ public $records = array( array('name' => 'Park\'s Great Hits', 'type' => 'Music', 'price' => 19), array('name' => 'Silly Puddy', 'type' => 'Toy', 'price' => 3), array('name' => 'Playstation', 'type' => 'Toy', 'price' => 89), array('name' => 'Men\'s T-Shirt', 'type' => 'Clothing', 'price' => 32), array('name' => 'Blouse', 'type' => 'Clothing', 'price' => 34), array('name' => 'Electronica 2002', 'type' => 'Music', 'price' => 4), array('name' => 'Country Tunes', 'type' => 'Music', 'price' => 21), array('name' => 'Watermelon', 'type' => 'Food', 'price' => 9) ); }
0001-bee
trunk/cakephp2/lib/Cake/Test/Fixture/ProductFixture.php
PHP
gpl3
1,826
<?php /** * Short description for file. * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.6700 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ /** * Short description for class. * * @package Cake.Test.Fixture */ class DataTestFixture extends CakeTestFixture { /** * Name property * * @var string 'DataTest' */ public $name = 'DataTest'; /** * Fields property * * @var array */ public $fields = array( 'id' => array('type' => 'integer', 'key' => 'primary'), 'count' => array('type' => 'integer', 'default' => 0), 'float' => array('type' => 'float', 'default' => 0), //'timestamp' => array('type' => 'timestamp', 'default' => null, 'null' => true), 'created' => array('type' => 'datetime', 'default' => null), 'updated' => array('type' => 'datetime', 'default' => null) ); /** * Records property * * @var array */ public $records = array( array( 'count' => 2, 'float' => 2.4, 'created' => '2010-09-06 12:28:00', 'updated' => '2010-09-06 12:28:00' ) ); }
0001-bee
trunk/cakephp2/lib/Cake/Test/Fixture/DataTestFixture.php
PHP
gpl3
1,521
<?php /** * Short description for file. * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.5669 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ /** * Short description for class. * * @package Cake.Test.Fixture */ class TranslatedItemFixture extends CakeTestFixture { /** * name property * * @var string 'TranslatedItem' */ public $name = 'TranslatedItem'; /** * fields property * * @var array */ public $fields = array( 'id' => array('type' => 'integer', 'key' => 'primary'), 'slug' => array('type' => 'string', 'null' => false) ); /** * records property * * @var array */ public $records = array( array('slug' => 'first_translated'), array('slug' => 'second_translated'), array('slug' => 'third_translated') ); }
0001-bee
trunk/cakephp2/lib/Cake/Test/Fixture/TranslatedItemFixture.php
PHP
gpl3
1,264
<?php /** * Short description for file. * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ /** * Short description for class. * * @package Cake.Test.Fixture */ class BidFixture extends CakeTestFixture { /** * name property * * @var string 'Bid' */ public $name = 'Bid'; /** * fields property * * @var array */ public $fields = array( 'id' => array('type' => 'integer', 'key' => 'primary'), 'message_id' => array('type' => 'integer', 'null' => false), 'name' => array('type' => 'string', 'null' => false) ); /** * records property * * @var array */ public $records = array( array('message_id' => 1, 'name' => 'Bid 1.1'), array('message_id' => 1, 'name' => 'Bid 1.2'), array('message_id' => 3, 'name' => 'Bid 3.1'), array('message_id' => 2, 'name' => 'Bid 2.1'), array('message_id' => 2, 'name' => 'Bid 2.2') ); }
0001-bee
trunk/cakephp2/lib/Cake/Test/Fixture/BidFixture.php
PHP
gpl3
1,421
<?php /** * Short description for file. * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ /** * Short description for class. * * @package Cake.Test.Fixture */ class AppleFixture extends CakeTestFixture { /** * name property * * @var string 'Apple' */ public $name = 'Apple'; /** * fields property * * @var array */ public $fields = array( 'id' => array('type' => 'integer', 'key' => 'primary'), 'apple_id' => array('type' => 'integer', 'null' => true), 'color' => array('type' => 'string', 'length' => 40, 'null' => false), 'name' => array('type' => 'string', 'length' => 40, 'null' => false), 'created' => 'datetime', 'date' => 'date', 'modified' => 'datetime', 'mytime' => 'time' ); /** * records property * * @var array */ public $records = array( array('apple_id' => 2, 'color' => 'Red 1', 'name' => 'Red Apple 1', 'created' => '2006-11-22 10:38:58', 'date' => '1951-01-04', 'modified' => '2006-12-01 13:31:26', 'mytime' => '22:57:17'), array('apple_id' => 1, 'color' => 'Bright Red 1', 'name' => 'Bright Red Apple', 'created' => '2006-11-22 10:43:13', 'date' => '2014-01-01', 'modified' => '2006-11-30 18:38:10', 'mytime' => '22:57:17'), array('apple_id' => 2, 'color' => 'blue green', 'name' => 'green blue', 'created' => '2006-12-25 05:13:36', 'date' => '2006-12-25', 'modified' => '2006-12-25 05:23:24', 'mytime' => '22:57:17'), array('apple_id' => 2, 'color' => 'Blue Green', 'name' => 'Test Name', 'created' => '2006-12-25 05:23:36', 'date' => '2006-12-25', 'modified' => '2006-12-25 05:23:36', 'mytime' => '22:57:17'), array('apple_id' => 5, 'color' => 'Green', 'name' => 'Blue Green', 'created' => '2006-12-25 05:24:06', 'date' => '2006-12-25', 'modified' => '2006-12-25 05:29:16', 'mytime' => '22:57:17'), array('apple_id' => 4, 'color' => 'My new appleOrange', 'name' => 'My new apple', 'created' => '2006-12-25 05:29:39', 'date' => '2006-12-25', 'modified' => '2006-12-25 05:29:39', 'mytime' => '22:57:17'), array('apple_id' => 6, 'color' => 'Some wierd color', 'name' => 'Some odd color', 'created' => '2006-12-25 05:34:21', 'date' => '2006-12-25', 'modified' => '2006-12-25 05:34:21', 'mytime' => '22:57:17') ); }
0001-bee
trunk/cakephp2/lib/Cake/Test/Fixture/AppleFixture.php
PHP
gpl3
2,755
<?php /** * Short description for file. * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ /** * Short description for class. * * @package Cake.Test.Fixture */ class AnotherArticleFixture extends CakeTestFixture { /** * name property * * @var string 'AnotherArticle' */ public $name = 'AnotherArticle'; /** * fields property * * @var array */ public $fields = array( 'id' => array('type' => 'integer', 'key' => 'primary'), 'title' => array('type' => 'string', 'null' => false), 'created' => 'datetime', 'updated' => 'datetime' ); /** * records property * * @var array */ public $records = array( array('title' => 'First Article', 'created' => '2007-03-18 10:39:23', 'updated' => '2007-03-18 10:41:31'), array('title' => 'Second Article', 'created' => '2007-03-18 10:41:23', 'updated' => '2007-03-18 10:43:31'), array('title' => 'Third Article', 'created' => '2007-03-18 10:43:23', 'updated' => '2007-03-18 10:45:31') ); }
0001-bee
trunk/cakephp2/lib/Cake/Test/Fixture/AnotherArticleFixture.php
PHP
gpl3
1,529
<?php /** * Short description for file. * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ /** * Short description for class. * * @package Cake.Test.Fixture */ class FeatureSetFixture extends CakeTestFixture { /** * name property * * @var string 'FeatureSet' */ public $name = 'FeatureSet'; /** * fields property * * @var array */ public $fields = array( 'id' => array('type' => 'integer', 'key' => 'primary'), 'name' => array('type' => 'string', 'null' => false) ); /** * records property * * @var array */ public $records = array( array('name' => 'FeatureSet 1') ); }
0001-bee
trunk/cakephp2/lib/Cake/Test/Fixture/FeatureSetFixture.php
PHP
gpl3
1,169
<?php /** * Short description for file. * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ /** * Short description for class. * * @package Cake.Test.Fixture */ class DeviceTypeCategoryFixture extends CakeTestFixture { /** * name property * * @var string 'DeviceTypeCategory' */ public $name = 'DeviceTypeCategory'; /** * fields property * * @var array */ public $fields = array( 'id' => array('type' => 'integer', 'key' => 'primary'), 'name' => array('type' => 'string', 'null' => false) ); /** * records property * * @var array */ public $records = array( array('name' => 'DeviceTypeCategory 1') ); }
0001-bee
trunk/cakephp2/lib/Cake/Test/Fixture/DeviceTypeCategoryFixture.php
PHP
gpl3
1,201
<?php /** * Short description for file. * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ /** * Short description for class. * * @package Cake.Test.Fixture */ class DeviceFixture extends CakeTestFixture { /** * name property * * @var string 'Device' */ public $name = 'Device'; /** * fields property * * @var array */ public $fields = array( 'id' => array('type' => 'integer', 'key' => 'primary'), 'device_type_id' => array('type' => 'integer', 'null' => false), 'name' => array('type' => 'string', 'null' => false), 'typ' => array('type' => 'integer', 'null' => false), ); /** * records property * * @var array */ public $records = array( array('device_type_id' => 1, 'name' => 'Device 1', 'typ' => 1), array('device_type_id' => 1, 'name' => 'Device 2', 'typ' => 1), array('device_type_id' => 1, 'name' => 'Device 3', 'typ' => 2) ); }
0001-bee
trunk/cakephp2/lib/Cake/Test/Fixture/DeviceFixture.php
PHP
gpl3
1,444
<?php /** * Short description for file. * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.6317 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ /** * Short description for class. * * @package Cake.Test.Fixture */ class JoinAFixture extends CakeTestFixture { /** * name property * * @var string 'JoinA' */ public $name = 'JoinA'; /** * fields property * * @var array */ public $fields = array( 'id' => array('type' => 'integer', 'key' => 'primary'), 'name' => array('type' => 'string', 'default' => ''), 'body' => array('type' => 'text'), 'created' => array('type' => 'datetime', 'null' => true), 'updated' => array('type' => 'datetime', 'null' => true) ); /** * records property * * @var array */ public $records = array( array('name' => 'Join A 1', 'body' => 'Join A 1 Body', 'created' => '2008-01-03 10:54:23', 'updated' => '2008-01-03 10:54:23'), array('name' => 'Join A 2', 'body' => 'Join A 2 Body', 'created' => '2008-01-03 10:54:24', 'updated' => '2008-01-03 10:54:24'), array('name' => 'Join A 3', 'body' => 'Join A 2 Body', 'created' => '2008-01-03 10:54:25', 'updated' => '2008-01-03 10:54:24') ); }
0001-bee
trunk/cakephp2/lib/Cake/Test/Fixture/JoinAFixture.php
PHP
gpl3
1,666
<?php /** * Short description for file. * * PHP 5 * * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice. * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://cakephp.org CakePHP(tm) Project * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.6879 //Correct version number as needed** * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ /** * Short description for file. * * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.6879 //Correct version number as needed** */ class NodeFixture extends CakeTestFixture { /** * name property * * @var string 'Node' */ public $name = 'Node'; /** * fields property * * @var array */ public $fields = array( 'id' => array('type' => 'integer', 'key' => 'primary'), 'name' => 'string', 'state' => 'integer' ); /** * records property * * @var array */ public $records = array( array('id' => 1, 'name' => 'First', 'state' => 50), array('id' => 2, 'name' => 'Second', 'state' => 60), ); }
0001-bee
trunk/cakephp2/lib/Cake/Test/Fixture/NodeFixture.php
PHP
gpl3
1,313
<?php /** * Short description for campaign_fixture.php * * Long description for campaign_fixture.php * * PHP 5 * * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice. * * @copyright CakePHP(tm) : Rapid Development Framework (http://cakephp.org) * @link http://www.cakephp.org * @package Cake.Test.Fixture * @since 1.2 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ /** * CampaignFixture class * * @package Cake.Test.Fixture */ class CampaignFixture extends CakeTestFixture { /** * name property * * @var string 'Campaign' */ public $name = 'Campaign'; /** * fields property * * @var array */ public $fields = array( 'id' => array('type' => 'integer', 'key' => 'primary'), 'name' => array('type' => 'string', 'length' => 255, 'null' => false), ); /** * records property * * @var array */ public $records = array( array('name' => 'Hurtigruten'), array('name' => 'Colorline'), array('name' => 'Queen of Scandinavia') ); }
0001-bee
trunk/cakephp2/lib/Cake/Test/Fixture/CampaignFixture.php
PHP
gpl3
1,155
<?php /** * Short description for file. * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ /** * Short description for class. * * @package Cake.Test.Fixture */ class ExteriorTypeCategoryFixture extends CakeTestFixture { /** * name property * * @var string 'ExteriorTypeCategory' */ public $name = 'ExteriorTypeCategory'; /** * fields property * * @var array */ public $fields = array( 'id' => array('type' => 'integer', 'key' => 'primary'), 'image_id' => array('type' => 'integer', 'null' => false), 'name' => array('type' => 'string', 'null' => false) ); /** * records property * * @var array */ public $records = array( array('image_id' => 1, 'name' => 'ExteriorTypeCategory 1') ); }
0001-bee
trunk/cakephp2/lib/Cake/Test/Fixture/ExteriorTypeCategoryFixture.php
PHP
gpl3
1,287
<?php /** * Short description for file. * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ /** * Short description for class. * * @package Cake.Test.Fixture */ class ContentAccountFixture extends CakeTestFixture { /** * name property * * @var string 'Aco' */ public $name = 'ContentAccount'; public $table = 'ContentAccounts'; /** * fields property * * @var array */ public $fields = array( 'iContentAccountsId' => array('type' => 'integer', 'key' => 'primary'), 'iContentId' => array('type' => 'integer'), 'iAccountId' => array('type' => 'integer') ); /** * records property * * @var array */ public $records = array( array('iContentId' => 1, 'iAccountId' => 1), array('iContentId' => 2, 'iAccountId' => 2), array('iContentId' => 3, 'iAccountId' => 3), array('iContentId' => 4, 'iAccountId' => 4), array('iContentId' => 1, 'iAccountId' => 2), array('iContentId' => 2, 'iAccountId' => 3), ); }
0001-bee
trunk/cakephp2/lib/Cake/Test/Fixture/ContentAccountFixture.php
PHP
gpl3
1,508
<?php /** * Short description for file. * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ /** * Short description for class. * * @package Cake.Test.Fixture */ class AroFixture extends CakeTestFixture { /** * name property * * @var string 'Aro' */ public $name = 'Aro'; /** * fields property * * @var array */ public $fields = array( 'id' => array('type' => 'integer', 'key' => 'primary'), 'parent_id' => array('type' => 'integer', 'length' => 10, 'null' => true), 'model' => array('type' => 'string', 'null' => true), 'foreign_key' => array('type' => 'integer', 'length' => 10, 'null' => true), 'alias' => array('type' => 'string', 'default' => ''), 'lft' => array('type' => 'integer', 'length' => 10, 'null' => true), 'rght' => array('type' => 'integer', 'length' => 10, 'null' => true) ); /** * records property * * @var array */ public $records = array( array('parent_id' => null, 'model' => null, 'foreign_key' => null, 'alias' => 'ROOT', 'lft' => 1, 'rght' => 8), array('parent_id' => '1', 'model' => 'Group', 'foreign_key' => '1', 'alias' => 'admins', 'lft' => 2, 'rght' => 7), array('parent_id' => '2', 'model' => 'AuthUser', 'foreign_key' => '1', 'alias' => 'Gandalf', 'lft' => 3, 'rght' => 4), array('parent_id' => '2', 'model' => 'AuthUser', 'foreign_key' => '2', 'alias' => 'Elrond', 'lft' => 5, 'rght' => 6) ); }
0001-bee
trunk/cakephp2/lib/Cake/Test/Fixture/AroFixture.php
PHP
gpl3
1,941
<?php /** * Short description for file. * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ /** * Short description for class. * * @package Cake.Test.Fixture */ class ItemFixture extends CakeTestFixture { /** * name property * * @var string 'Item' */ public $name = 'Item'; /** * fields property * * @var array */ public $fields = array( 'id' => array('type' => 'integer', 'key' => 'primary'), 'syfile_id' => array('type' => 'integer', 'null' => false), 'published' => array('type' => 'boolean', 'null' => false), 'name' => array('type' => 'string', 'null' => false) ); /** * records property * * @var array */ public $records = array( array('syfile_id' => 1, 'published' => 0, 'name' => 'Item 1'), array('syfile_id' => 2, 'published' => 0, 'name' => 'Item 2'), array('syfile_id' => 3, 'published' => 0, 'name' => 'Item 3'), array('syfile_id' => 4, 'published' => 0, 'name' => 'Item 4'), array('syfile_id' => 5, 'published' => 0, 'name' => 'Item 5'), array('syfile_id' => 6, 'published' => 0, 'name' => 'Item 6') ); }
0001-bee
trunk/cakephp2/lib/Cake/Test/Fixture/ItemFixture.php
PHP
gpl3
1,630
<?php /** * Short description for file. * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ /** * Short description for class. * * @package Cake.Test.Fixture */ class AuthUserFixture extends CakeTestFixture { /** * name property * * @var string 'AuthUser' */ public $name = 'AuthUser'; /** * fields property * * @var array */ public $fields = array( 'id' => array('type' => 'integer', 'key' => 'primary'), 'username' => array('type' => 'string', 'null' => false), 'password' => array('type' => 'string', 'null' => false), 'created' => 'datetime', 'updated' => 'datetime' ); /** * records property * * @var array */ public $records = array( array('username' => 'mariano', 'password' => '5f4dcc3b5aa765d61d8327deb882cf99', 'created' => '2007-03-17 01:16:23', 'updated' => '2007-03-17 01:18:31'), array('username' => 'nate', 'password' => '5f4dcc3b5aa765d61d8327deb882cf99', 'created' => '2007-03-17 01:18:23', 'updated' => '2007-03-17 01:20:31'), array('username' => 'larry', 'password' => '5f4dcc3b5aa765d61d8327deb882cf99', 'created' => '2007-03-17 01:20:23', 'updated' => '2007-03-17 01:22:31'), array('username' => 'garrett', 'password' => '5f4dcc3b5aa765d61d8327deb882cf99', 'created' => '2007-03-17 01:22:23', 'updated' => '2007-03-17 01:24:31'), array('username' => 'chartjes', 'password' => '5f4dcc3b5aa765d61d8327deb882cf99', 'created' => '2007-03-17 01:22:23', 'updated' => '2007-03-17 01:24:31'), ); }
0001-bee
trunk/cakephp2/lib/Cake/Test/Fixture/AuthUserFixture.php
PHP
gpl3
2,024
<?php /** * Tree behavior class. * * Enables a model object to act as a node-based tree. * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.5331 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ /** * Number Tree Test Fixture * * Generates a tree of data for use testing the tree behavior * * @package Cake.Test.Fixture */ class NumberTreeTwoFixture extends CakeTestFixture { /** * name property * * @var string 'NumberTree' */ public $name = 'NumberTreeTwo'; /** * fields property * * @var array */ public $fields = array( 'id' => array('type' => 'integer','key' => 'primary'), 'name' => array('type' => 'string','null' => false), 'number_tree_id' => array('type' => 'integer', 'null' => false), 'parent_id' => 'integer', 'lft' => array('type' => 'integer','null' => false), 'rght' => array('type' => 'integer','null' => false) ); }
0001-bee
trunk/cakephp2/lib/Cake/Test/Fixture/NumberTreeTwoFixture.php
PHP
gpl3
1,381
<?php /** * Short description for file. * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ /** * Short description for class. * * @package Cake.Test.Fixture */ class DeviceTypeFixture extends CakeTestFixture { /** * name property * * @var string 'DeviceType' */ public $name = 'DeviceType'; /** * fields property * * @var array */ public $fields = array( 'id' => array('type' => 'integer', 'key' => 'primary'), '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) ); /** * records property * * @var array */ public $records = array( array('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) ); }
0001-bee
trunk/cakephp2/lib/Cake/Test/Fixture/DeviceTypeFixture.php
PHP
gpl3
1,789
<?php /** * BakeTagFixture * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice. * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 2.0 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ /** * Short description for class. * * @package Cake.Test.Fixture */ class BakeTagFixture extends CakeTestFixture { /** * name property * * @var string 'Tag' */ public $name = 'BakeTag'; /** * fields property * * @var array */ public $fields = array( 'id' => array('type' => 'integer', 'key' => 'primary'), 'tag' => array('type' => 'string', 'null' => false), 'created' => 'datetime', 'updated' => 'datetime' ); /** * records property * * @var array */ public $records = array(); }
0001-bee
trunk/cakephp2/lib/Cake/Test/Fixture/BakeTagFixture.php
PHP
gpl3
1,154
<?php /** * BakeCommentFixture * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice. * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 2.0 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ /** * BakeCommentFixture fixture for testing bake * * @package Cake.Test.Fixture */ class BakeCommentFixture extends CakeTestFixture { /** * name property * * @var string 'Comment' */ public $name = 'BakeComment'; /** * fields property * * @var array */ public $fields = array( 'id' => array('type' => 'integer', 'key' => 'primary'), 'bake_article_id' => array('type' => 'integer', 'null'=>false), 'bake_user_id' => array('type' => 'integer', 'null'=>false), 'comment' => 'text', 'published' => array('type' => 'string', 'length' => 1, 'default' => 'N'), 'created' => 'datetime', 'updated' => 'datetime' ); /** * records property * * @var array */ public $records = array(); }
0001-bee
trunk/cakephp2/lib/Cake/Test/Fixture/BakeCommentFixture.php
PHP
gpl3
1,359
<?php /** * Short description for file. * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ /** * Short description for class. * * @package Cake.Test.Fixture */ class ImageFixture extends CakeTestFixture { /** * name property * * @var string 'Image' */ public $name = 'Image'; /** * fields property * * @var array */ public $fields = array( 'id' => array('type' => 'integer', 'key' => 'primary'), 'name' => array('type' => 'string', 'null' => false) ); /** * records property * * @var array */ public $records = array( array('name' => 'Image 1'), array('name' => 'Image 2'), array('name' => 'Image 3'), array('name' => 'Image 4'), array('name' => 'Image 5') ); }
0001-bee
trunk/cakephp2/lib/Cake/Test/Fixture/ImageFixture.php
PHP
gpl3
1,269
<?php /** * Short description for file. * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ /** * Short description for class. * * @package Cake.Test.Fixture */ class CategoryFixture extends CakeTestFixture { /** * name property * * @var string 'Category' */ public $name = 'Category'; /** * fields property * * @var array */ public $fields = array( 'id' => array('type' => 'integer', 'key' => 'primary'), 'parent_id' => array('type' => 'integer', 'null' => false), 'name' => array('type' => 'string', 'null' => false), 'created' => 'datetime', 'updated' => 'datetime' ); /** * records property * * @var array */ public $records = array( array('parent_id' => 0, 'name' => 'Category 1', 'created' => '2007-03-18 15:30:23', 'updated' => '2007-03-18 15:32:31'), array('parent_id' => 1, 'name' => 'Category 1.1', 'created' => '2007-03-18 15:30:23', 'updated' => '2007-03-18 15:32:31'), array('parent_id' => 1, 'name' => 'Category 1.2', 'created' => '2007-03-18 15:30:23', 'updated' => '2007-03-18 15:32:31'), array('parent_id' => 0, 'name' => 'Category 2', 'created' => '2007-03-18 15:30:23', 'updated' => '2007-03-18 15:32:31'), array('parent_id' => 0, 'name' => 'Category 3', 'created' => '2007-03-18 15:30:23', 'updated' => '2007-03-18 15:32:31'), array('parent_id' => 5, 'name' => 'Category 3.1', 'created' => '2007-03-18 15:30:23', 'updated' => '2007-03-18 15:32:31'), array('parent_id' => 2, 'name' => 'Category 1.1.1', 'created' => '2007-03-18 15:30:23', 'updated' => '2007-03-18 15:32:31'), array('parent_id' => 2, 'name' => 'Category 1.1.2', 'created' => '2007-03-18 15:30:23', 'updated' => '2007-03-18 15:32:31'), ); }
0001-bee
trunk/cakephp2/lib/Cake/Test/Fixture/CategoryFixture.php
PHP
gpl3
2,243
<?php /** * Short description for file. * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.7953 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ /** * Short description for class. * * @package Cake.Test.Fixture */ class FruitsUuidTagFixture extends CakeTestFixture { /** * name property * * @var string 'FruitsUuidTag' */ public $name = 'FruitsUuidTag'; /** * fields property * * @var array */ public $fields = array( 'fruit_id' => array('type' => 'string', 'null' => false, 'length' => 36, 'key' => 'primary'), 'uuid_tag_id' => array('type' => 'string', 'null' => false, 'length' => 36, 'key' => 'primary'), 'indexes' => array( 'unique_fruits_tags' => array('unique' => true, 'column' => array('fruit_id', 'uuid_tag_id')), ), ); /** * records property * * @var array */ public $records = array( array('fruit_id' => '481fc6d0-b920-43e0-a40d-6d1740cf8569', 'uuid_tag_id' => '481fc6d0-b920-43e0-e50f-6d1740cf8569') ); }
0001-bee
trunk/cakephp2/lib/Cake/Test/Fixture/FruitsUuidTagFixture.php
PHP
gpl3
1,470
<?php PHP_CodeCoverage_Filter::getInstance()->addFileToBlacklist(__FILE__, 'DEFAULT'); /** * This class helpes in indirectly testing the functionaliteies of CakeTestCase::assertTags * * @package Cake.Test.Fixture */ class AssertTagsTestCase extends CakeTestCase { /** * test that assertTags knows how to handle correct quoting. * * @return void */ public function testAssertTagsQuotes() { $input = '<a href="/test.html" class="active">My link</a>'; $pattern = array( 'a' => array('href' => '/test.html', 'class' => 'active'), 'My link', '/a' ); $this->assertTags($input, $pattern); $input = "<a href='/test.html' class='active'>My link</a>"; $pattern = array( 'a' => array('href' => '/test.html', 'class' => 'active'), 'My link', '/a' ); $this->assertTags($input, $pattern); $input = "<a href='/test.html' class='active'>My link</a>"; $pattern = array( 'a' => array('href' => 'preg:/.*\.html/', 'class' => 'active'), 'My link', '/a' ); $this->assertTags($input, $pattern); } /** * testNumericValuesInExpectationForAssertTags * * @return void */ public function testNumericValuesInExpectationForAssertTags() { $value = 220985; $input = '<p><strong>' . $value . '</strong></p>'; $pattern = array( '<p', '<strong', $value, '/strong', '/p' ); $this->assertTags($input, $pattern); $input = '<p><strong>' . $value . '</strong></p><p><strong>' . $value . '</strong></p>'; $pattern = array( '<p', '<strong', $value, '/strong', '/p', '<p', '<strong', $value, '/strong', '/p', ); $this->assertTags($input, $pattern); $input = '<p><strong>' . $value . '</strong></p><p id="' . $value . '"><strong>' . $value . '</strong></p>'; $pattern = array( '<p', '<strong', $value, '/strong', '/p', 'p' => array('id' => $value), '<strong', $value, '/strong', '/p', ); $this->assertTags($input, $pattern); } /** * testBadAssertTags * * @return void */ public function testBadAssertTags() { $input = '<a href="/test.html" class="active">My link</a>'; $pattern = array( 'a' => array('hRef' => '/test.html', 'clAss' => 'active'), 'My link2', '/a' ); $this->assertTags($input, $pattern); } /** * testBadAssertTags * * @return void */ public function testBadAssertTags2() { $input = '<a href="/test.html" class="active">My link</a>'; $pattern = array( '<a' => array('href' => '/test.html', 'class' => 'active'), 'My link', '/a' ); $this->assertTags($input, $pattern); } }
0001-bee
trunk/cakephp2/lib/Cake/Test/Fixture/AssertTagsTestCase.php
PHP
gpl3
2,594
<?php /** * Short description for file. * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ /** * Short description for class. * * @package Cake.Test.Fixture */ class ArticleFixture extends CakeTestFixture { /** * name property * * @var string 'Article' */ public $name = 'Article'; /** * fields property * * @var array */ public $fields = array( 'id' => array('type' => 'integer', 'key' => 'primary'), 'user_id' => array('type' => 'integer', 'null' => true), 'title' => array('type' => 'string', 'null' => true), 'body' => 'text', 'published' => array('type' => 'string', 'length' => 1, 'default' => 'N'), 'created' => 'datetime', 'updated' => 'datetime' ); /** * records property * * @var array */ public $records = array( array('user_id' => 1, 'title' => 'First Article', 'body' => 'First Article Body', 'published' => 'Y', 'created' => '2007-03-18 10:39:23', 'updated' => '2007-03-18 10:41:31'), array('user_id' => 3, 'title' => 'Second Article', 'body' => 'Second Article Body', 'published' => 'Y', 'created' => '2007-03-18 10:41:23', 'updated' => '2007-03-18 10:43:31'), array('user_id' => 1, 'title' => 'Third Article', 'body' => 'Third Article Body', 'published' => 'Y', 'created' => '2007-03-18 10:43:23', 'updated' => '2007-03-18 10:45:31') ); }
0001-bee
trunk/cakephp2/lib/Cake/Test/Fixture/ArticleFixture.php
PHP
gpl3
1,869
<?php /** * Short description for file. * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ /** * Short description for class. * * @package Cake.Test.Fixture */ class CounterCacheUserNonstandardPrimaryKeyFixture extends CakeTestFixture { public $name = 'CounterCacheUserNonstandardPrimaryKey'; public $fields = array( 'uid' => array('type' => 'integer', 'key' => 'primary'), 'name' => array('type' => 'string', 'length' => 255, 'null' => false), 'post_count' => array('type' => 'integer', 'null' => true) ); public $records = array( array('uid' => 66, 'name' => 'Alexander','post_count' => 2), array('uid' => 301, 'name' => 'Steven','post_count' => 1), ); }
0001-bee
trunk/cakephp2/lib/Cake/Test/Fixture/CounterCacheUserNonstandardPrimaryKeyFixture.php
PHP
gpl3
1,248
<?php /** * Short description for file. * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ /** * Short description for class. * * @package Cake.Test.Fixture */ class ProductUpdateAllFixture extends CakeTestFixture { public $name = 'ProductUpdateAll'; public $table = 'product_update_all'; public $fields = array( 'id' => array('type'=>'integer', 'null' => false, 'default' => NULL, 'key' => 'primary'), 'name' => array('type'=>'string', 'null' => false, 'length' => 29), 'groupcode' => array('type'=>'integer', 'null' => false, 'length' => 4), 'group_id' => array('type'=>'integer', 'null' => false, 'length' => 8), 'indexes' => array('PRIMARY' => array('column' => 'id', 'unique' => 1)) ); public $records = array( array( 'id' => 1, 'name' => 'product one', 'groupcode' => 120, 'group_id' => 1 ), array( 'id' => 2, 'name' => 'product two', 'groupcode' => 120, 'group_id' => 1), array( 'id' => 3, 'name' => 'product three', 'groupcode' => 125, 'group_id' => 2), array( 'id' => 4, 'name' => 'product four', 'groupcode' => 135, 'group_id' => 4) ); }
0001-bee
trunk/cakephp2/lib/Cake/Test/Fixture/ProductUpdateAllFixture.php
PHP
gpl3
1,964
<?php /** * Short description for file. * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ /** * Short description for class. * * @package Cake.Test.Fixture */ class UuidportfolioFixture extends CakeTestFixture { /** * name property * * @var string 'Uuidportfolio' */ public $name = 'Uuidportfolio'; /** * fields property * * @var array */ public $fields = array( 'id' => array('type' => 'string', 'length' => 36, 'key' => 'primary'), 'name' => array('type' => 'string', 'null' => false) ); /** * records property * * @var array */ public $records = array( array('id' => '4806e091-6940-4d2b-b227-303740cf8569', 'name' => 'Portfolio 1'), array('id' => '480af662-eb8c-47d3-886b-230540cf8569', 'name' => 'Portfolio 2'), ); }
0001-bee
trunk/cakephp2/lib/Cake/Test/Fixture/UuidportfolioFixture.php
PHP
gpl3
1,323
<?php /** * Short description for file. * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ /** * Short description for class. * * @package Cake.Test.Fixture */ class DocumentFixture extends CakeTestFixture { /** * name property * * @var string 'Document' */ public $name = 'Document'; /** * fields property * * @var array */ public $fields = array( 'id' => array('type' => 'integer', 'key' => 'primary'), 'document_directory_id' => array('type' => 'integer', 'null' => false), 'name' => array('type' => 'string', 'null' => false) ); /** * records property * * @var array */ public $records = array( array('document_directory_id' => 1, 'name' => 'Document 1') ); }
0001-bee
trunk/cakephp2/lib/Cake/Test/Fixture/DocumentFixture.php
PHP
gpl3
1,265
<?php /** * Short description for file. * * PHP 5 * * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ /** * Short description for class. * * @package Cake.Test.Fixture */ class BasketFixture extends CakeTestFixture { /** * name property * * @var string 'Basket' */ public $name = 'Basket'; /** * fields property * * @var array */ public $fields = array( 'id' => array('type' => 'integer', 'key' => 'primary'), 'type' => array('type' => 'string', 'length' => 255), 'name' => array('type' => 'string', 'length' => 255), 'object_id' => array('type' => 'integer'), 'user_id' => array('type' => 'integer'), ); /** * records property * * @var array */ public $records = array( array('id' => 1, 'type' => 'nonfile', 'name' => 'basket1', 'object_id' => 1, 'user_id' => 1), array('id' => 2, 'type' => 'file', 'name' => 'basket2', 'object_id' => 2, 'user_id' => 1), ); }
0001-bee
trunk/cakephp2/lib/Cake/Test/Fixture/BasketFixture.php
PHP
gpl3
1,457