|
|
@@ -1,72 +0,0 @@
|
|
|
-<?php
|
|
|
-/**
|
|
|
- * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
|
|
|
- * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
|
|
|
- *
|
|
|
- * Licensed under The MIT License
|
|
|
- * For full copyright and license information, please see the LICENSE.txt
|
|
|
- * Redistributions of files must retain the above copyright notice
|
|
|
- *
|
|
|
- * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
|
|
|
- * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
|
|
|
- * @since 1.2.0
|
|
|
- * @license http://www.opensource.org/licenses/mit-license.php MIT License
|
|
|
- */
|
|
|
-namespace Cake\Test\Fixture;
|
|
|
-
|
|
|
-use Cake\TestSuite\Fixture\TestFixture;
|
|
|
-
|
|
|
-/**
|
|
|
- * Class TranslateWithPrefixFixture
|
|
|
- *
|
|
|
- */
|
|
|
-class TranslateWithPrefixesFixture extends TestFixture {
|
|
|
-
|
|
|
-/**
|
|
|
- * table property
|
|
|
- *
|
|
|
- * @var string
|
|
|
- */
|
|
|
- public $table = 'i18n_translate_with_prefixes';
|
|
|
-
|
|
|
-/**
|
|
|
- * fields property
|
|
|
- *
|
|
|
- * @var array
|
|
|
- */
|
|
|
- public $fields = array(
|
|
|
- 'id' => ['type' => 'integer'],
|
|
|
- 'locale' => ['type' => 'string', 'length' => 6, 'null' => false],
|
|
|
- 'model' => ['type' => 'string', 'null' => false],
|
|
|
- 'foreign_key' => ['type' => 'integer', 'null' => false],
|
|
|
- 'field' => ['type' => 'string', 'null' => false],
|
|
|
- 'content' => ['type' => 'text'],
|
|
|
- '_constraints' => ['primary' => ['type' => 'primary', 'columns' => ['id']]]
|
|
|
- );
|
|
|
-
|
|
|
-/**
|
|
|
- * 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')
|
|
|
- );
|
|
|
-}
|