Initial commit

This commit is contained in:
mareksebera 2014-09-10 20:20:58 +02:00
commit 3b93da31de
1004 changed files with 265840 additions and 0 deletions

View file

@ -0,0 +1,2 @@
<?php
Configure::write('CakePluginTest.js_plugin.bootstrap', 'loaded js plugin bootstrap');

View file

@ -0,0 +1 @@
alert('plugin one nested js file');

View file

@ -0,0 +1 @@
alert('win sauce');

View file

@ -0,0 +1,40 @@
<?php
/**
* TestAppSchema file
*
* Use for testing the loading of schema files from plugins.
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* 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://cakephp.org CakePHP(tm) Project
* @package Cake.Test.TestApp.Plugin.TestPlugin.Config.Schema
* @since CakePHP(tm) v 1.3
* @license http://www.opensource.org/licenses/mit-license.php MIT License
*/
/**
* Class TestPluginAppSchema
*
* @package Cake.Test.TestApp.Plugin.TestPlugin.Config.Schema
*/
class TestPluginAppSchema extends CakeSchema {
public $name = 'TestPluginApp';
public $test_plugin_acos = array(
'id' => array('type' => 'integer', 'null' => false, 'default' => null, 'length' => 10, 'key' => 'primary'),
'parent_id' => array('type' => 'integer', 'null' => true, 'default' => null, 'length' => 10),
'model' => array('type' => 'string', 'null' => true),
'foreign_key' => array('type' => 'integer', 'null' => true, 'default' => null, 'length' => 10),
'alias' => array('type' => 'string', 'null' => true),
'lft' => array('type' => 'integer', 'null' => true, 'default' => null, 'length' => 10),
'rght' => array('type' => 'integer', 'null' => true, 'default' => null, 'length' => 10),
'indexes' => array('PRIMARY' => array('column' => 'id', 'unique' => 1))
);
}

View file

@ -0,0 +1,57 @@
;<?php exit() ?>
; SVN FILE: $Id$
;/**
; * Test App Ini Based Acl Config File
; *
; * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
; * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
; *
; * Licensed under The MIT License
; * Redistributions of files must retain the above copyright notice.
; *
; * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
; * @link http://cakephp.org CakePHP(tm) Project
; * @package Cake.Test.TestApp.Config
; * @since CakePHP(tm) v 0.10.0.1076
; * @license http://www.opensource.org/licenses/mit-license.php MIT License
; */
;-------------------------------------
;Users
;-------------------------------------
[admin]
groups = administrators
allow =
deny = ads
[paul]
groups = users
allow =
deny =
[jenny]
groups = users
allow = ads
deny = images, files
[nobody]
groups = anonymous
allow =
deny =
;-------------------------------------
;Groups
;-------------------------------------
[administrators]
deny =
allow = posts, comments, images, files, stats, ads
[users]
allow = posts, comments, images, files
deny = stats, ads
[anonymous]
allow =
deny = posts, comments, images, files, stats, ads

View file

@ -0,0 +1,2 @@
<?php
Configure::write('CakePluginTest.test_plugin.bootstrap', 'loaded plugin bootstrap');

View file

@ -0,0 +1,2 @@
<?php
Configure::write('CakePluginTest.test_plugin.custom', 'loaded plugin custom config');

View file

@ -0,0 +1,19 @@
<?php
/**
* Test Suite TestPlugin config file.
*
* 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
* @package Cake.Test.TestApp.Plugin.TestPlugin.Config
* @since CakePHP(tm) v 1.3
* @license http://www.opensource.org/licenses/mit-license.php MIT License
*/
$config['plugin_load'] = '/test_app/plugins/test_plugin/config/load.php';

View file

@ -0,0 +1,19 @@
<?php
/**
* Test Suite TestPlugin config file.
*
* 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
* @package Cake.Test.TestApp.Plugin.TestPlugin.Config
* @since CakePHP(tm) v 1.3
* @license http://www.opensource.org/licenses/mit-license.php MIT License
*/
$config['plugin_more_load'] = '/test_app/plugins/test_plugin/config/more.load.php';

View file

@ -0,0 +1,4 @@
; Test file for testing ini files with . syntax
[database]
db.username = bar
db.password = foo

View file

@ -0,0 +1,2 @@
<?php
Configure::write('CakePluginTest.test_plugin.routes', 'loaded plugin routes');

View file

@ -0,0 +1,33 @@
<?php
/**
* Short description for file.
*
* 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
* @package Cake.Test.TestApp.Plugin.TestPlugin.Console.Command
* @since CakePHP(tm) v 1.2.0.7871
* @license http://www.opensource.org/licenses/mit-license.php MIT License
*/
/**
* Class ExampleShell
* @package Cake.Test.TestApp.Plugin.TestPlugin.Console.Command
*/
class ExampleShell extends Shell {
/**
* main method
*
* @return void
*/
public function main() {
$this->out('This is the main method called from TestPlugin.ExampleShell');
}
}

View file

@ -0,0 +1,26 @@
<?php
/**
* Testing task in a plugin
*
* 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
* @package Cake.Test.TestApp.Plugin.TestPlugin.Console.Command.Task
* @since CakePHP(tm) v 2.0
* @license http://www.opensource.org/licenses/mit-license.php MIT License
*/
/**
* Class OtherTaskTask
*
* @package Cake.Test.TestApp.Plugin.TestPlugin.Console.Command.Task
*/
class OtherTaskTask extends Shell {
}

View file

@ -0,0 +1,25 @@
<?php
/**
* Short description for file.
*
* 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
* @package Cake.Test.TestApp.Plugin.TestPlugin.Controller.Component
* @since CakePHP(tm) v 1.2.0.4206
* @license http://www.opensource.org/licenses/mit-license.php MIT License
*/
/**
* Class OtherComponent
*
* @package Cake.Test.TestApp.Plugin.TestPlugin.Controller.Component
*/
class OtherComponent extends Component {
}

View file

@ -0,0 +1,28 @@
<?php
/**
* Short description for file.
*
* 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
* @package Cake.Test.TestApp.Plugin.TestPlugin.Controller.Component
* @since CakePHP(tm) v 1.2.0.4206
* @license http://www.opensource.org/licenses/mit-license.php MIT License
*/
/**
* Class PluginsComponent
*
* @package Cake.Test.TestApp.Plugin.TestPlugin.Controller.Component
*/
class PluginsComponent extends Component {
public $components = array('TestPlugin.Other');
}

View file

@ -0,0 +1,28 @@
<?php
/**
* Short description for file.
*
* 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
* @package Cake.Test.TestApp.Plugin.TestPlugin.Controller.Component
* @since CakePHP(tm) v 1.2.0.4206
* @license http://www.opensource.org/licenses/mit-license.php MIT License
*/
/**
* Class TestPluginComponent
*
* @package Cake.Test.TestApp.Plugin.TestPlugin.Controller.Component
*/
class TestPluginComponent extends Component {
public $components = array('TestPlugin.TestPluginOther');
}

View file

@ -0,0 +1,25 @@
<?php
/**
* Short description for file.
*
* 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
* @package Cake.Test.TestApp.Plugin.TestPlugin.Controller.Component
* @since CakePHP(tm) v 1.2.0.4206
* @license http://www.opensource.org/licenses/mit-license.php MIT License
*/
/**
* Class TestPluginOtherComponent
*
* @package Cake.Test.TestApp.Plugin.TestPlugin.Controller.Component
*/
class TestPluginOtherComponent extends Component {
}

View file

@ -0,0 +1,27 @@
<?php
/**
* Test Suite TestPlugin AppController
*
* 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
* @package Cake.Test.TestApp.Plugin.TestPlugin.Controller
* @since CakePHP(tm) v 1.2.0.5432
* @license http://www.opensource.org/licenses/mit-license.php MIT License
*/
App::uses('AppController', 'Controller');
/**
* Class TestPluginAppController
*
* @package Cake.Test.TestApp.Plugin.TestPlugin.Controller
*/
class TestPluginAppController extends AppController {
}

View file

@ -0,0 +1,36 @@
<?php
/**
* TestPluginController used by Dispatcher test to test plugin shortcut URLs.
*
* 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
* @package Cake.Test.TestApp.Plugin.TestPlugin.Controller
* @since CakePHP(tm) v 1.3
* @license http://www.opensource.org/licenses/mit-license.php MIT License
*/
/**
* Class TestPluginController
*
* @package Cake.Test.TestApp.Plugin.TestPlugin.Controller
*/
class TestPluginController extends TestPluginAppController {
public $uses = array();
public function index() {
$this->autoRender = false;
}
public function add() {
$this->autoRender = false;
}
}

View file

@ -0,0 +1,40 @@
<?php
/**
* Short description for file.
*
* 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
* @package Cake.Test.TestApp.Plugin.TestPlugin.Controller
* @since CakePHP(tm) v 1.2.0.4206
* @license http://www.opensource.org/licenses/mit-license.php MIT License
*/
/**
* Class TestsController
*
* @package Cake.Test.TestApp.Plugin.TestPlugin.Controller
*/
class TestsController extends TestPluginAppController {
public $uses = array();
public $helpers = array('TestPlugin.OtherHelper', 'Html');
public $components = array('TestPlugin.Plugins');
public function index() {
$this->set('test_value', 'It is a variable');
}
public function some_method() {
return 25;
}
}

View file

@ -0,0 +1,46 @@
<?php
/**
* Test Suite Test Plugin Cache Engine class.
*
* 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
* @package Cake.Test.TestApp.Plugin.TestPlugin.Lib.Cache.Engine
* @since CakePHP(tm) v 1.3
* @license http://www.opensource.org/licenses/mit-license.php MIT License
*/
/**
* Class TestPluginCacheEngine
*
* @package Cake.Test.TestApp.Plugin.TestPlugin.Lib.Cache.Engine
*/
class TestPluginCacheEngine extends CacheEngine {
public function write($key, $value, $duration) {
}
public function read($key) {
}
public function increment($key, $offset = 1) {
}
public function decrement($key, $offset = 1) {
}
public function delete($key) {
}
public function clear($check) {
}
public function clearGroup($group) {
}
}

View file

@ -0,0 +1,25 @@
<?php
/**
* Test Suite CustomLibClass Library
*
* 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
* @package Cake.Test.TestApp.Plugin.TestPlugin.Lib.Custom.Package
* @since CakePHP(tm) v 1.2.0.5432
* @license http://www.opensource.org/licenses/mit-license.php MIT License
*/
/**
* Class CustomLibClass
*
* @package Cake.Test.TestApp.Plugin.TestPlugin.Lib.Custom.Package
*/
class CustomLibClass {
}

View file

@ -0,0 +1,39 @@
<?php
/**
* Exception Renderer
*
* Provides Exception rendering features. Which allow exceptions to be rendered
* as HTML pages.
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* 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://cakephp.org CakePHP(tm) Project
* @package Cake.Test.TestApp.Plugin.TestPlugin.Lib.Error
* @since CakePHP(tm) v 2.0
* @license http://www.opensource.org/licenses/mit-license.php MIT License
*/
App::uses('ExceptionRenderer', 'Error');
/**
* Class TestPluginExceptionRenderer
*
* @package Cake.Test.TestApp.Plugin.TestPlugin.Lib.Error
*/
class TestPluginExceptionRenderer extends ExceptionRenderer {
/**
* Renders the response for the exception.
*
* @return void
*/
public function render() {
echo 'Rendered by test plugin';
}
}

View file

@ -0,0 +1,31 @@
<?php
/**
* Test Suite Test Plugin Logging stream class.
*
* 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
* @package Cake.Test.TestApp.Plugin.TestPlugin.Lib.Log.Engine
* @since CakePHP(tm) v 1.3
* @license http://www.opensource.org/licenses/mit-license.php MIT License
*/
App::uses('CakeLogInterface', 'Log');
/**
* Class TestPluginLog
*
* @package Cake.Test.TestApp.Plugin.TestPlugin.Lib.Log.Engine
*/
class TestPluginLog implements CakeLogInterface {
public function write($type, $message) {
}
}

View file

@ -0,0 +1,36 @@
<?php
/**
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* 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://cakephp.org CakePHP(tm) Project
* @package Cake.Test.TestApp.Routing.Filter
* @since CakePHP(tm) v 2.2
* @license http://www.opensource.org/licenses/mit-license.php MIT License
*/
App::uses('DispatcherFilter', 'Routing');
/**
* Class Test2DispatcherFilter
*
* @package Cake.Test.TestApp.Routing.Filter
*/
class Test2DispatcherFilter extends DispatcherFilter {
public function beforeDispatch(CakeEvent $event) {
$event->data['response']->statusCode(500);
$event->stopPropagation();
return $event->data['response'];
}
public function afterDispatch(CakeEvent $event) {
$event->data['response']->statusCode(200);
}
}

View file

@ -0,0 +1,34 @@
<?php
/**
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* 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://cakephp.org CakePHP(tm) Project
* @package Cake.Test.TestApp.Routing.Filter
* @since CakePHP(tm) v 2.2
* @license http://www.opensource.org/licenses/mit-license.php MIT License
*/
App::uses('DispatcherFilter', 'Routing');
/**
* Class TestDispatcherFilter
*
* @package Cake.Test.TestApp.Routing.Filter
*/
class TestDispatcherFilter extends DispatcherFilter {
public function beforeDispatch(CakeEvent $event) {
$event->data['request']->params['altered'] = true;
}
public function afterDispatch(CakeEvent $event) {
$event->data['response']->statusCode(304);
}
}

View file

@ -0,0 +1,7 @@
<?php
App::uses('CakeRoute', 'Routing/Route');
class TestRoute extends CakeRoute {
}

View file

@ -0,0 +1,25 @@
<?php
/**
* Test Suite TestPlugin Library
*
* 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
* @package Cake.Test.TestApp.Plugin.TestPlugin.Lib
* @since CakePHP(tm) v 1.2.0.5432
* @license http://www.opensource.org/licenses/mit-license.php MIT License
*/
/**
* Class TestPluginLibrary
*
* @package Cake.Test.TestApp.Plugin.TestPlugin.Lib
*/
class TestPluginLibrary {
}

View file

@ -0,0 +1,25 @@
<?php
/**
* Test Suite TestPlugin Other Library
*
* 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
* @package Cake.Test.TestApp.Plugin.TestPlugin.Lib
* @since CakePHP(tm) v 2.0.1
* @license http://www.opensource.org/licenses/mit-license.php MIT License
*/
/**
* Class TestPluginOtherLibrary
*
* @package Cake.Test.TestApp.Plugin.TestPlugin.Lib
*/
class TestPluginOtherLibrary {
}

View file

@ -0,0 +1,50 @@
msgid ""
msgstr ""
"Project-Id-Version: CakePHP Testsuite\n"
"POT-Creation-Date: 2008-05-15 02:51-0700\n"
"PO-Revision-Date: \n"
"Last-Translator: CakePHP I18N & I10N Team <i10n.cakephp@gmail.com>\n"
"Language-Team: CakePHP I18N & I10N Team <i10n.cakephp@gmail.com>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Poedit-Language: Two Forms of Plurals\n"
"X-Poedit-SourceCharset: utf-8\n"
msgid "Plural Rule 1"
msgstr "Plural Rule 1 (from plugin)"
msgid "%d = 1"
msgid_plural "%d = 0 or > 1"
msgstr[0] "%d = 1 (from plugin)"
msgstr[1] "%d = 0 or > 1 (from plugin)"
#~ msgid "Plural-Forms 1"
#~ msgstr "Plural-Forms 1 (from plugin)"
msgid ""
msgstr ""
"Project-Id-Version: CakePHP Testsuite\n"
"POT-Creation-Date: 2008-05-15 02:51-0700\n"
"PO-Revision-Date: \n"
"Last-Translator: CakePHP I18N & I10N Team <i10n.cakephp@gmail.com>\n"
"Language-Team: CakePHP I18N & I10N Team <i10n.cakephp@gmail.com>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Poedit-Language: Two Forms of Plurals\n"
"X-Poedit-SourceCharset: utf-8\n"
msgid "Plural Rule 1"
msgstr "Plural Rule 1 (from plugin)"
msgid "%d = 1"
msgid_plural "%d = 0 or > 1"
msgstr[0] "%d = 1 (from plugin)"
msgstr[1] "%d = 0 or > 1 (from plugin)"
#~ msgid "Plural-Forms 1"
#~ msgstr "Plural-Forms 1 (from plugin)"

View file

@ -0,0 +1,22 @@
msgid ""
msgstr ""
"Project-Id-Version: CakePHP Testsuite\n"
"POT-Creation-Date: 2008-05-15 02:51-0700\n"
"PO-Revision-Date: \n"
"Last-Translator: CakePHP I18N & I10N Team <i10n.cakephp@gmail.com>\n"
"Language-Team: CakePHP I18N & I10N Team <i10n.cakephp@gmail.com>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Poedit-Language: Two Forms of Plurals\n"
"X-Poedit-SourceCharset: utf-8\n"
msgid "Plural Rule 1"
msgstr "Monetary Plural Rule 1 (from plugin)"
msgid "%d = 1"
msgid_plural "%d = 0 or > 1"
msgstr[0] "Monetary %d = 1 (from plugin)"
msgstr[1] "Monetary %d = 0 or > 1 (from plugin)"

View file

@ -0,0 +1,31 @@
<?php
/**
* Behavior for binding management.
*
* Behavior to simplify manipulating a model's bindings when doing a find operation
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* 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://cakephp.org CakePHP(tm) Project
* @package Cake.Test.TestApp.Plugin.TestPlugin.Model.Behavior
* @since CakePHP(tm) v 1.2.0.5669
* @version $Revision$
* @modifiedby $LastChangedBy$
* @lastmodified $Date$
* @license http://www.opensource.org/licenses/mit-license.php MIT License
*/
/**
* 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.TestApp.Plugin.TestPlugin.Model.Behavior
*/
class TestPluginPersisterOneBehavior extends ModelBehavior {
}

View file

@ -0,0 +1,31 @@
<?php
/**
* Behavior for binding management.
*
* Behavior to simplify manipulating a model's bindings when doing a find operation
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* 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://cakephp.org CakePHP(tm) Project
* @package Cake.Test.TestApp.Plugin.TestPlugin.Model.Behavior
* @since CakePHP(tm) v 1.2.0.5669
* @version $Revision$
* @modifiedby $LastChangedBy$
* @lastmodified $Date$
* @license http://www.opensource.org/licenses/mit-license.php MIT License
*/
/**
* 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.TestApp.Plugin.TestPlugin.Model.Behavior
*/
class TestPluginPersisterTwoBehavior extends ModelBehavior {
}

View file

@ -0,0 +1,11 @@
<?php
App::uses('DboSource', 'Model/Datasource');
class DboDummy extends DboSource {
public function connect() {
return true;
}
}

View file

@ -0,0 +1,3 @@
<?php
class TestDriver extends TestSource {
}

View file

@ -0,0 +1,29 @@
<?php
/**
* Test suite plugin session handler
*/
App::uses('CakeSessionHandlerInterface', 'Model/Datasource/Session');
class TestPluginSession 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) {
}
}

View file

@ -0,0 +1,27 @@
<?php
class TestOtherSource extends DataSource {
public function describe($model) {
return compact('model');
}
public function listSources($data = null) {
return array('test_source');
}
public function create(Model $model, $fields = null, $values = array()) {
return compact('model', 'fields', 'values');
}
public function read(Model $model, $queryData = array(), $recursive = null) {
return compact('model', 'queryData');
}
public function update(Model $model, $fields = array(), $values = array(), $conditions = null) {
return compact('model', 'fields', 'values');
}
public function delete(Model $model, $id = null) {
return compact('model', 'id');
}
}

View file

@ -0,0 +1,30 @@
<?php
App::uses('DataSource', 'Model/Datasource');
class TestSource extends DataSource {
public function describe($model) {
return compact('model');
}
public function listSources($data = null) {
return array('test_source');
}
public function create(Model $model, $fields = array(), $values = array()) {
return compact('model', 'fields', 'values');
}
public function read(Model $model, $queryData = array(), $recursive = null) {
return compact('model', 'queryData');
}
public function update(Model $model, $fields = array(), $values = array(), $conditions = null) {
return compact('model', 'fields', 'values');
}
public function delete(Model $model, $id = null) {
return compact('model', 'id');
}
}

View file

@ -0,0 +1,25 @@
<?php
/**
* Test Suite TestPlugin AppModel
*
* 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
* @package Cake.Test.TestApp.Plugin.TestPlugin.Model
* @since CakePHP(tm) v 1.2.0.5432
* @license http://www.opensource.org/licenses/mit-license.php MIT License
*/
/**
* Class TestPluginAppModel
*
* @package Cake.Test.TestApp.Plugin.TestPlugin.Model
*/
class TestPluginAppModel extends CakeTestModel {
}

View file

@ -0,0 +1,46 @@
<?php
/**
* Test Plugin Auth User Model
*
* CakePHP : Rapid Development Framework (http://cakephp.org)
* 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://cakephp.org CakePHP Project
* @package Cake.Test.TestApp.Plugin.TestPlugin.Model
* @since CakePHP v 1.2.0.4487
* @license http://www.opensource.org/licenses/mit-license.php MIT License
*/
/**
* Class TestPluginAuthUser
*
* @package Cake.Test.TestApp.Plugin.TestPlugin.Model
*/
class TestPluginAuthUser extends TestPluginAppModel {
/**
* Name property
*
* @var string
*/
public $name = 'TestPluginAuthUser';
/**
* useTable property
*
* @var string
*/
public $useTable = 'auth_users';
/**
* useDbConfig property
*
* @var string
*/
public $useDbConfig = 'test';
}

View file

@ -0,0 +1,42 @@
<?php
/**
* Test App Comment Model
*
* CakePHP : Rapid Development Framework (http://cakephp.org)
* 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://cakefoundation.org/projects/info/cakephp CakePHP Project
* @package Cake.Test.TestApp.Plugin.TestPlugin.Model
* @since CakePHP v 1.2.0.7726
* @version $Revision$
* @modifiedby $LastChangedBy$
* @lastmodified $Date$
* @license http://www.opensource.org/licenses/mit-license.php MIT License
*/
/**
* Class TestPluginAuthors
*
* @package Cake.Test.TestApp.Plugin.TestPlugin.Model
*/
class TestPluginAuthors extends TestPluginAppModel {
public $useTable = 'authors';
public $name = 'TestPluginAuthors';
public $validate = array(
'field' => array(
'notEmpty' => array(
'rule' => 'notEmpty',
'message' => 'I can haz plugin model validation message',
),
),
);
}

View file

@ -0,0 +1,33 @@
<?php
/**
* Test App Comment Model
*
* CakePHP : Rapid Development Framework (http://cakephp.org)
* 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://cakefoundation.org/projects/info/cakephp CakePHP Project
* @package Cake.Test.TestApp.Plugin.TestPlugin.Model
* @since CakePHP v 1.2.0.7726
* @version $Revision$
* @modifiedby $LastChangedBy$
* @lastmodified $Date$
* @license http://www.opensource.org/licenses/mit-license.php MIT License
*/
/**
* Class TestPluginComment
*
* @package Cake.Test.TestApp.Plugin.TestPlugin.Model
*/
class TestPluginComment extends TestPluginAppModel {
public $useTable = 'test_plugin_comments';
public $name = 'TestPluginComment';
}

View file

@ -0,0 +1,74 @@
<?php
/**
* Test Plugin Post Model
*
* CakePHP : Rapid Development Framework (http://cakephp.org)
* 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://cakephp.org CakePHP Project
* @package Cake.Test.TestApp.Plugin.TestPlugin.Model
* @since CakePHP v 1.2.0.4487
* @license http://www.opensource.org/licenses/mit-license.php MIT License
*/
/**
* Class TestPluginPost
*
* @package Cake.Test.TestApp.Plugin.TestPlugin.Model
*/
class TestPluginPost extends TestPluginAppModel {
/**
* Name property
*
* @var string
*/
public $name = 'Post';
/**
* useTable property
*
* @var string
*/
public $useTable = 'posts';
/**
* Validation rules
*
* @var array
*/
public $validate = array(
'title' => array(
'rule' => array('custom', '.*'),
'allowEmpty' => true,
'required' => false,
'message' => 'Post title is required'
),
'body' => array(
'first_rule' => array(
'rule' => array('custom', '.*'),
'allowEmpty' => true,
'required' => false,
'message' => 'Post body is required'
),
'Post body is super required' => array(
'rule' => array('custom', '.*'),
'allowEmpty' => true,
'required' => false,
)
),
);
/**
* Translation domain to use for validation messages
*
* @var string
*/
public $validationDomain = 'test_plugin';
}

View file

@ -0,0 +1,5 @@
<?php
class TestPluginEngine {
}

View file

@ -0,0 +1,4 @@
<?php
class ExampleExample {
}

View file

@ -0,0 +1,25 @@
<?php
/**
* Short description for file.
*
* 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
* @package Cake.Test.TestApp.Plugin.TestPlugin.Vendor.sample
* @since CakePHP(tm) v 1.2.0.4206
* @license http://www.opensource.org/licenses/mit-license.php MIT License
*/
/**
* Class SamplePluginClassTestName
*
* @package Cake.Test.TestApp.Plugin.TestPlugin.Vendor.sample
*/
class SamplePluginClassTestName {
}

View file

@ -0,0 +1,19 @@
<?php
/**
* Short description for file.
*
* 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
* @package Cake.Test.TestApp.Plugin.TestPlugin.Vendor
* @since CakePHP(tm) v 1.2.0.7629
* @license http://www.opensource.org/licenses/mit-license.php MIT License
*/
?>
This is the welcome.php file in test_plugin/vendors directory

View file

@ -0,0 +1 @@
<?php echo 'this is the plugin element using params[plugin]'; ?>

View file

@ -0,0 +1 @@
Content from TestPlugin.Elements/sub_dir/sub_element

View file

@ -0,0 +1 @@
<?php echo 'this is the test set using View::$plugin plugin element'; ?>

View file

@ -0,0 +1 @@
<?php echo __('This is a translatable string'); ?>

View file

@ -0,0 +1 @@
Into TestPlugin.

View file

@ -0,0 +1,11 @@
test plugin error500
<h2><?php echo $message; ?></h2>
<p class="error">
<strong><?php echo __d('cake', 'Error'); ?>: </strong>
<?php echo __d('cake', 'An Internal Error Has Occurred.'); ?>
</p>
<?php
if (Configure::read('debug') > 0):
echo $this->element('exception_stack_trace');
endif;
?>

View file

@ -0,0 +1,27 @@
<?php
/**
* Short description for file.
*
* 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
* @package Cake.Test.TestApp.Plugin.TestPlugin.View.Helper
* @since CakePHP(tm) v 1.2.0.4206
* @license http://www.opensource.org/licenses/mit-license.php MIT License
*/
App::uses('AppHelper', 'View/Helper');
/**
* Class OtherHelperHelper
*
* @package Cake.Test.TestApp.Plugin.TestPlugin.View.Helper
*/
class OtherHelperHelper extends AppHelper {
}

View file

@ -0,0 +1,27 @@
<?php
/**
* Short description for file.
*
* 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
* @package Cake.Test.TestApp.Plugin.TestPlugin.View.Helper
* @since CakePHP(tm) v 1.2.0.4206
* @license http://www.opensource.org/licenses/mit-license.php MIT License
*/
/**
* Class PluggedHelperHelper
*
* @package Cake.Test.TestApp.Plugin.TestPlugin.View.Helper
*/
class PluggedHelperHelper extends AppHelper {
public $helpers = array('TestPlugin.OtherHelper');
}

View file

@ -0,0 +1,4 @@
<?php
class TestPluginAppHelper extends AppHelper {
}

View file

@ -0,0 +1,4 @@
<?php echo $this->fetch('content'); ?>
This email was sent using the TestPlugin.

View file

@ -0,0 +1 @@
test plugin default layout

View file

@ -0,0 +1 @@
test plugin index

View file

@ -0,0 +1 @@
test_plugin add/edit scaffold view

View file

@ -0,0 +1 @@
/* this is the test plugin asset css file */

View file

@ -0,0 +1 @@
htc file

View file

@ -0,0 +1 @@
Testing a file with unknown extension to mime mapping.

View file

@ -0,0 +1 @@
this is just a test to load swf file from the plugin.

Binary file not shown.

After

Width:  |  Height:  |  Size: 233 B

View file

@ -0,0 +1 @@
alert("Test App");

View file

@ -0,0 +1 @@
this is just a test to load pdf file from the plugin.

View file

@ -0,0 +1 @@
alert('I am a root level file!');

View file

@ -0,0 +1,2 @@
<?php
Configure::write('CakePluginTest.test_plugin_two.bootstrap', 'loaded plugin two bootstrap');

View file

@ -0,0 +1,34 @@
<?php
/**
* Short description for file.
*
* 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
* @package Cake.Test.TestApp.Plugin.TestPluginTwo.Console.Command
* @since CakePHP(tm) v 1.2.0.7871
* @license http://www.opensource.org/licenses/mit-license.php MIT License
*/
/**
* Class ExampleShell
*
* @package Cake.Test.TestApp.Plugin.TestPluginTwo.Console.Command
*/
class ExampleShell extends Shell {
/**
* main method
*
* @return void
*/
public function main() {
$this->out('This is the main method called from TestPluginTwo.ExampleShell');
}
}

View file

@ -0,0 +1,34 @@
<?php
/**
* Short description for file.
*
* 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
* @package Cake.Test.TestApp.Plugin.TestPluginTwo.Console.Command
* @since CakePHP(tm) v 1.2.0.7871
* @license http://www.opensource.org/licenses/mit-license.php MIT License
*/
/**
* Class WelcomeShell
*
* @package Cake.Test.TestApp.Plugin.TestPluginTwo.Console.Command
*/
class WelcomeShell extends Shell {
/**
* say_hello method
*
* @return void
*/
public function say_hello() {
$this->out('This is the say_hello method called from TestPluginTwo.WelcomeShell');
}
}

View file

@ -0,0 +1,4 @@
<?php echo $this->fetch('content'); ?>
This email was sent using TestPluginTwo.