mirror of
				https://github.com/brmlab/brmbiolab_sklad.git
				synced 2025-10-30 23:14:01 +01:00 
			
		
		
		
	Initial commit
This commit is contained in:
		
						commit
						3b93da31de
					
				
					 1004 changed files with 265840 additions and 0 deletions
				
			
		|  | @ -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)) | ||||
| 	); | ||||
| } | ||||
							
								
								
									
										57
									
								
								lib/Cake/Test/test_app/Plugin/TestPlugin/Config/acl.ini.php
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										57
									
								
								lib/Cake/Test/test_app/Plugin/TestPlugin/Config/acl.ini.php
									
										
									
									
									
										Normal 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 | ||||
|  | @ -0,0 +1,2 @@ | |||
| <?php | ||||
| Configure::write('CakePluginTest.test_plugin.bootstrap', 'loaded plugin bootstrap'); | ||||
|  | @ -0,0 +1,2 @@ | |||
| <?php | ||||
| Configure::write('CakePluginTest.test_plugin.custom', 'loaded plugin custom config'); | ||||
							
								
								
									
										19
									
								
								lib/Cake/Test/test_app/Plugin/TestPlugin/Config/load.php
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								lib/Cake/Test/test_app/Plugin/TestPlugin/Config/load.php
									
										
									
									
									
										Normal 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'; | ||||
|  | @ -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'; | ||||
|  | @ -0,0 +1,4 @@ | |||
| ; Test file for testing ini files with . syntax | ||||
| [database] | ||||
| db.username = bar | ||||
| db.password = foo | ||||
|  | @ -0,0 +1,2 @@ | |||
| <?php | ||||
| Configure::write('CakePluginTest.test_plugin.routes', 'loaded plugin routes'); | ||||
|  | @ -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'); | ||||
| 	} | ||||
| } | ||||
|  | @ -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 { | ||||
| 
 | ||||
| } | ||||
|  | @ -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 { | ||||
| } | ||||
|  | @ -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'); | ||||
| 
 | ||||
| } | ||||
|  | @ -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'); | ||||
| 
 | ||||
| } | ||||
|  | @ -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 { | ||||
| } | ||||
|  | @ -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 { | ||||
| } | ||||
|  | @ -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; | ||||
| 	} | ||||
| 
 | ||||
| } | ||||
|  | @ -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; | ||||
| 	} | ||||
| 
 | ||||
| } | ||||
|  | @ -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) { | ||||
| 	} | ||||
| } | ||||
|  | @ -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 { | ||||
| } | ||||
|  | @ -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'; | ||||
| 	} | ||||
| } | ||||
|  | @ -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) { | ||||
| 	} | ||||
| 
 | ||||
| } | ||||
|  | @ -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); | ||||
| 	} | ||||
| 
 | ||||
| } | ||||
|  | @ -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); | ||||
| 	} | ||||
| 
 | ||||
| } | ||||
|  | @ -0,0 +1,7 @@ | |||
| <?php | ||||
| 
 | ||||
| App::uses('CakeRoute', 'Routing/Route'); | ||||
| 
 | ||||
| class TestRoute extends CakeRoute { | ||||
| 
 | ||||
| } | ||||
|  | @ -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 { | ||||
| } | ||||
|  | @ -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 { | ||||
| } | ||||
|  | @ -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)" | ||||
| 
 | ||||
|  | @ -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)" | ||||
| 
 | ||||
|  | @ -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 { | ||||
| } | ||||
|  | @ -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 { | ||||
| } | ||||
|  | @ -0,0 +1,11 @@ | |||
| <?php | ||||
| 
 | ||||
| App::uses('DboSource', 'Model/Datasource'); | ||||
| 
 | ||||
| class DboDummy extends DboSource { | ||||
| 
 | ||||
| 	public function connect() { | ||||
| 		return true; | ||||
| 	} | ||||
| 
 | ||||
| } | ||||
|  | @ -0,0 +1,3 @@ | |||
| <?php | ||||
| class TestDriver extends TestSource { | ||||
| } | ||||
|  | @ -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) { | ||||
| 	} | ||||
| 
 | ||||
| } | ||||
|  | @ -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'); | ||||
| 	} | ||||
| } | ||||
|  | @ -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'); | ||||
| 	} | ||||
| } | ||||
|  | @ -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 { | ||||
| } | ||||
|  | @ -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'; | ||||
| } | ||||
|  | @ -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', | ||||
| 			), | ||||
| 		), | ||||
| 	); | ||||
| 
 | ||||
| } | ||||
|  | @ -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'; | ||||
| 
 | ||||
| } | ||||
|  | @ -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'; | ||||
| 
 | ||||
| } | ||||
|  | @ -0,0 +1,5 @@ | |||
| <?php | ||||
| 
 | ||||
| class TestPluginEngine { | ||||
| 
 | ||||
| } | ||||
							
								
								
									
										4
									
								
								lib/Cake/Test/test_app/Plugin/TestPlugin/Vendor/Example/ExampleExample.php
									
										
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								lib/Cake/Test/test_app/Plugin/TestPlugin/Vendor/Example/ExampleExample.php
									
										
									
									
										vendored
									
									
										Normal file
									
								
							|  | @ -0,0 +1,4 @@ | |||
| <?php | ||||
| class ExampleExample { | ||||
| 
 | ||||
| } | ||||
							
								
								
									
										25
									
								
								lib/Cake/Test/test_app/Plugin/TestPlugin/Vendor/sample/sample_plugin.php
									
										
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										25
									
								
								lib/Cake/Test/test_app/Plugin/TestPlugin/Vendor/sample/sample_plugin.php
									
										
									
									
										vendored
									
									
										Normal 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 { | ||||
| } | ||||
							
								
								
									
										19
									
								
								lib/Cake/Test/test_app/Plugin/TestPlugin/Vendor/welcome.php
									
										
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								lib/Cake/Test/test_app/Plugin/TestPlugin/Vendor/welcome.php
									
										
									
									
										vendored
									
									
										Normal 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 | ||||
|  | @ -0,0 +1 @@ | |||
| <?php echo 'this is the plugin element using params[plugin]'; ?> | ||||
|  | @ -0,0 +1 @@ | |||
| Content from TestPlugin.Elements/sub_dir/sub_element | ||||
|  | @ -0,0 +1 @@ | |||
| <?php echo 'this is the test set using View::$plugin plugin element'; ?> | ||||
|  | @ -0,0 +1 @@ | |||
| <?php echo __('This is a translatable string'); ?> | ||||
|  | @ -0,0 +1 @@ | |||
| Into TestPlugin. | ||||
|  | @ -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; | ||||
| ?> | ||||
|  | @ -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 { | ||||
| } | ||||
|  | @ -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'); | ||||
| } | ||||
|  | @ -0,0 +1,4 @@ | |||
| <?php | ||||
| class TestPluginAppHelper extends AppHelper { | ||||
| 
 | ||||
| } | ||||
|  | @ -0,0 +1,4 @@ | |||
| 
 | ||||
| <?php echo $this->fetch('content'); ?> | ||||
| 
 | ||||
| This email was sent using the TestPlugin. | ||||
|  | @ -0,0 +1 @@ | |||
| test plugin default layout | ||||
|  | @ -0,0 +1 @@ | |||
| test plugin index | ||||
|  | @ -0,0 +1 @@ | |||
| test_plugin add/edit scaffold view | ||||
|  | @ -0,0 +1 @@ | |||
| /* this is the test plugin asset css file */ | ||||
|  | @ -0,0 +1 @@ | |||
| htc file | ||||
|  | @ -0,0 +1 @@ | |||
| Testing a file with unknown extension to mime mapping. | ||||
|  | @ -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 | 
|  | @ -0,0 +1 @@ | |||
| alert("Test App"); | ||||
|  | @ -0,0 +1 @@ | |||
| this is just a test to load pdf file from the plugin. | ||||
							
								
								
									
										1
									
								
								lib/Cake/Test/test_app/Plugin/TestPlugin/webroot/root.js
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								lib/Cake/Test/test_app/Plugin/TestPlugin/webroot/root.js
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1 @@ | |||
| alert('I am a root level file!'); | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 mareksebera
						mareksebera