2008-11-03 23:58:44 +00:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Short description for file.
|
|
|
|
*
|
2012-04-27 02:49:18 +00:00
|
|
|
* CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
|
2013-02-08 11:59:49 +00:00
|
|
|
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
|
2008-11-03 23:58:44 +00:00
|
|
|
*
|
2010-10-03 16:31:21 +00:00
|
|
|
* Licensed under The MIT License
|
2013-02-08 12:22:51 +00:00
|
|
|
* For full copyright and license information, please see the LICENSE.txt
|
2010-10-03 16:31:21 +00:00
|
|
|
* Redistributions of files must retain the above copyright notice
|
2008-11-03 23:58:44 +00:00
|
|
|
*
|
2013-02-08 11:59:49 +00:00
|
|
|
* @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
|
2012-04-27 02:49:18 +00:00
|
|
|
* @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
|
2011-07-26 06:16:14 +00:00
|
|
|
* @package Cake.Test.Fixture
|
2008-11-03 23:58:44 +00:00
|
|
|
* @since CakePHP(tm) v 1.2.0.5669
|
2013-05-30 22:11:14 +00:00
|
|
|
* @license http://www.opensource.org/licenses/mit-license.php MIT License
|
2008-11-03 23:58:44 +00:00
|
|
|
*/
|
2009-07-24 19:18:37 +00:00
|
|
|
|
2008-11-03 23:58:44 +00:00
|
|
|
/**
|
2016-08-10 10:22:09 +00:00
|
|
|
* TranslateArticleFixture
|
2008-11-03 23:58:44 +00:00
|
|
|
*
|
2011-07-26 06:16:14 +00:00
|
|
|
* @package Cake.Test.Fixture
|
2008-11-03 23:58:44 +00:00
|
|
|
*/
|
|
|
|
class TranslateArticleFixture extends CakeTestFixture {
|
2009-07-24 19:18:37 +00:00
|
|
|
|
2008-11-03 23:58:44 +00:00
|
|
|
/**
|
|
|
|
* table property
|
|
|
|
*
|
2014-07-03 13:36:42 +00:00
|
|
|
* @var string
|
2008-11-03 23:58:44 +00:00
|
|
|
*/
|
2010-04-04 07:14:00 +00:00
|
|
|
public $table = 'article_i18n';
|
2009-07-24 19:18:37 +00:00
|
|
|
|
2008-11-03 23:58:44 +00:00
|
|
|
/**
|
|
|
|
* fields property
|
|
|
|
*
|
|
|
|
* @var array
|
|
|
|
*/
|
2010-04-04 07:14:00 +00:00
|
|
|
public $fields = array(
|
2008-11-03 23:58:44 +00:00
|
|
|
'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')
|
|
|
|
);
|
2009-07-24 19:18:37 +00:00
|
|
|
|
2008-11-03 23:58:44 +00:00
|
|
|
/**
|
|
|
|
* records property
|
|
|
|
*
|
|
|
|
* @var array
|
|
|
|
*/
|
2010-04-04 07:14:00 +00:00
|
|
|
public $records = array(
|
2012-05-08 02:10:17 +00:00
|
|
|
array('locale' => 'eng', 'model' => 'TranslatedArticle', 'foreign_key' => 1, 'field' => 'title', 'content' => 'Title (eng) #1'),
|
|
|
|
array('locale' => 'eng', 'model' => 'TranslatedArticle', 'foreign_key' => 1, 'field' => 'body', 'content' => 'Body (eng) #1'),
|
|
|
|
array('locale' => 'deu', 'model' => 'TranslatedArticle', 'foreign_key' => 1, 'field' => 'title', 'content' => 'Title (deu) #1'),
|
|
|
|
array('locale' => 'deu', 'model' => 'TranslatedArticle', 'foreign_key' => 1, 'field' => 'body', 'content' => 'Body (deu) #1'),
|
|
|
|
array('locale' => 'cze', 'model' => 'TranslatedArticle', 'foreign_key' => 1, 'field' => 'title', 'content' => 'Title (cze) #1'),
|
|
|
|
array('locale' => 'cze', 'model' => 'TranslatedArticle', 'foreign_key' => 1, 'field' => 'body', 'content' => 'Body (cze) #1'),
|
|
|
|
array('locale' => 'eng', 'model' => 'TranslatedArticle', 'foreign_key' => 2, 'field' => 'title', 'content' => 'Title (eng) #2'),
|
|
|
|
array('locale' => 'eng', 'model' => 'TranslatedArticle', 'foreign_key' => 2, 'field' => 'body', 'content' => 'Body (eng) #2'),
|
|
|
|
array('locale' => 'deu', 'model' => 'TranslatedArticle', 'foreign_key' => 2, 'field' => 'title', 'content' => 'Title (deu) #2'),
|
|
|
|
array('locale' => 'deu', 'model' => 'TranslatedArticle', 'foreign_key' => 2, 'field' => 'body', 'content' => 'Body (deu) #2'),
|
|
|
|
array('locale' => 'cze', 'model' => 'TranslatedArticle', 'foreign_key' => 2, 'field' => 'title', 'content' => 'Title (cze) #2'),
|
|
|
|
array('locale' => 'cze', 'model' => 'TranslatedArticle', 'foreign_key' => 2, 'field' => 'body', 'content' => 'Body (cze) #2'),
|
|
|
|
array('locale' => 'eng', 'model' => 'TranslatedArticle', 'foreign_key' => 3, 'field' => 'title', 'content' => 'Title (eng) #3'),
|
|
|
|
array('locale' => 'eng', 'model' => 'TranslatedArticle', 'foreign_key' => 3, 'field' => 'body', 'content' => 'Body (eng) #3'),
|
|
|
|
array('locale' => 'deu', 'model' => 'TranslatedArticle', 'foreign_key' => 3, 'field' => 'title', 'content' => 'Title (deu) #3'),
|
|
|
|
array('locale' => 'deu', 'model' => 'TranslatedArticle', 'foreign_key' => 3, 'field' => 'body', 'content' => 'Body (deu) #3'),
|
|
|
|
array('locale' => 'cze', 'model' => 'TranslatedArticle', 'foreign_key' => 3, 'field' => 'title', 'content' => 'Title (cze) #3'),
|
|
|
|
array('locale' => 'cze', 'model' => 'TranslatedArticle', 'foreign_key' => 3, 'field' => 'body', 'content' => 'Body (cze) #3')
|
2008-11-03 23:58:44 +00:00
|
|
|
);
|
|
|
|
}
|